Google Backup and Sync super slow and 100% CPU usage for days

applescriptbackupgoogle-sync

I recently copied a lot of files into a synced folder to be back them up. The total file size was about 30GB, I have 10MB up/100MB down internet connection. So in a perfect world 8 hours should have been enough to sync.

Google Backup and Sync kicked in and was at 100% CPU with the fan on hair dryer mode for nearly 2 weeks. Unfortunately there were 1000s of extremely small source code files which Google Backup can not handle efficiently. See https://support.google.com/drive/thread/5381381?hl=en

Setup:
2018 MacBook Air
Internet: 100MB download and 10MB upload
Catalina 10.15.3 (19D76)
Google Backup and Sync
Version 3.48.8668.1939

What can be done to speed things up and avoid this?

Best Answer

I thought it would be more efficient to leave it on but I noticed that the number of files synced was increasing more slowly as time went on. Possibly due to an inefficiency as the back app was continuously scanning unsynced files. After a few days it was managing just 1000 files a day. When I restarted it would manage 500+ in the first half an hour.

Rather than constantly restarting the app here is an Apple Script which helped speed things up. It restarts Google Backup and Sync every half an hours which really helped.

Open the apple Script Editor. Copy the text into the script editor and hit “Run"

repeat
    log "About to start Google backup and sync"
    tell application "Backup and Sync" to activate
    log "Starting for 30 minutes..."
    delay 1800
    log "About to quit Google backup and sync"
    tell application "Backup and Sync" to quit
    log "Application Closed"
    delay 60
end repeat