The simplest way would be to create a new Dropbox account and synchronize to Dropbox, but I’m assuming that you don’t want to do that.
Second easiest way is to use step 1, and then do a guy push to a remote repo, but if you want to use Google drive:
- Use this script as a starting point:
That will get you a local backup
-
Optional: Encrypt your backup if you feel like it, maybe using gpg
-
Upload to Google drive. Use something like this:
How to Upload a File to Google Drive from the Terminal/Command Line ~ ServerKaKa -
Realize that for a backup, you’ll want rollback so the data loss doesn’t replace your backup, and either upload the git repo from step 1, or version your backups.
-
Test your backups, because an untested backup isn’t useful