lra / mackup

Keep your application settings in sync (OS X/Linux)
GNU General Public License v3.0
14.6k stars 933 forks source link

Google Drive Replaced #1082

Open DonRichards opened 7 years ago

DonRichards commented 7 years ago

Google recently replaced Google Drive with Google Drive File Stream. This is causing the following (obvious) error

$ mackup list
Error: Unable to find your Google Drive install =(

I tried a system link with no luck.

pythoninthegrass commented 6 years ago

Similar issue on my end except Mackup is looking for Dropbox: Error: Unable to find your Dropbox install =(.

My .mackup.cfg looks like this:

[storage]
engine = google_drive

[configuration_files]
.gitignore_global
.git-prompt.sh
.git-completion.bash

This appears to be a similar issue as #581.

Running ls -l "$HOME/Library/Application Support/Google/Drive/sync_config.db" "$HOME/Library/Application Support/Google/Drive/user_default/sync_config.db" returns

ls: /Users/admin/Library/Application Support/Google/Drive/sync_config.db: No such file or directory
-rw-r--r--  1 admin  staff  20480 Dec 13 08:10 /Users/admin/Library/Application Support/Google/Drive/user_default/sync_config.db

Tempted to copy ~/Library/Application Support/Google/Drive/user_default/sync_config.db to ~/Library/Application Support/Google/Drive/.

Recommendations?

pythoninthegrass commented 6 years ago

... And no change after copying ~/Library/Application Support/Google/Drive/user_default/sync_config.db to ~/Library/Application Support/Google/Drive/, then running mackup restore.

EDIT: Forgot to mention that on both Macs, running Mackup 0.8.16.

jwmann commented 6 years ago

Same Issue. It's because Google Drive has been replaced by the new File Stream system which has a different location and folder structure.

Should add a google_filestream option in order to keep backwards compatibility.

jwmann commented 6 years ago

I temporarily got around this by copying my Mackup folder into Dropbox and changing my .mackup.cfg setting to use dropbox and restoring there but obviously I'd prefer to use Google in the future.

MikaelSmith commented 6 years ago

I've found

[storage]
engine = file_system
path = Google Drive File Stream/My Drive

works for now. Working on a PR to add a google_filestream option that defaults to that. I haven't yet found a way to configure where File Stream puts your files.

FutureSharks commented 3 years ago

As a new comer to mackup that wanted to use Google Drive, it's quite confusing but I think I worked it out.

Now you download from Google Backup and Sync or InstallBackupAndSync.dmg. Once you install this, it actually installs 2 separate Google Drive applications: Backup and Sync.app, Google Drive File Stream.app. You need to open both, complete the initial setup process and sign-in. Then mackup works without setting path in the config file.

Stooovie commented 3 years ago

Not working anymore. Backup and Sync cannot be installed.

Cuzart commented 2 years ago

Unfortunately still an issue with mackup version 0.8.33 and Google Drive version 52.0.6.0 (installed via homebrew) on MacOS Monterey 12.2.1. Also the proposed solution from @MikaelSmith is not working for me.

The get_google_drive_folder_location() function is looking for a file named sync_config.db in /Users/username/Library/Application Support/Google/Drive/ but with the mentioned versions there is no Google Drive directory in Application support and no sync_config.db on my system.

jenildesai25 commented 2 years ago

I do not see google_filestream as a replacement for google_drive. I do see there is a branch open here https://github.com/MikaelSmith/mackup/tree/add-google-filestream which has not been merged yet. Is there any update on this @MikaelSmith?

MikaelSmith commented 2 years ago

I'm no longer using Google Drive desktop tools, so didn't follow up on it.