LinuxQuestions.org Member Success StoriesJust spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is done/tested on openSUSE and CentOS 6. It *SHOULD* work elsewhere, but your mileage may vary.
Obviously, you need to set up a Google drive account. In this instance, I'm using a pay-for, $10 a month/unlimited space account.
Install and configure google-drive-ocamlfuse. Website here: http://gdfuse.forge.ocamlcore.org/ Installation is fairly simple, but I recommend installing from console, since you'll need a web-browser for final authorization/authentication to Google. You CAN do it remotely, but export your display variable first.
Install rclone, available here: http://rclone.org/ Supports different cloud services, and actually works with them.
Now, once you get those things installed, you're pretty much ready to go. The two commands I use are "rclone sync" and "rclone copy". The sync will REMOVE files on the cloud drive, if they're removed locally. Use with caution. The copy is just that...anything new/changed on the local side gets shoveled up to the cloud.
This specifies that you're going to copy modified/added files from the local "/home/user" directory to the googlecloud named resource (you configured this when you set up rclone), into the /home/user directory there. The -v is for reporting back on what's getting done...useful for putting this in CRON, and redirecting it to a log file.
I've got my user personal directories going to /home/Users/<username> and group files to /home/Groups/<group share name>. Speed isn't awesome...but it certainly gets the job done. Let the initial 'full' backup run first, then cron this every night. Your files get up to the cloud, and you at least have a copy.
I've been using rclone to sync my Dropbox and Google Drive accounts for some time. I also use it to sync my Box account to those, after mounting it locally, plus various local syncs. It works very well from cronjobs. I haven't seen the need for -v, since the entire log gets mailed to me. I suppose some people like redundancy, though.
I've been using rclone to sync my Dropbox and Google Drive accounts for some time. I also use it to sync my Box account to those, after mounting it locally, plus various local syncs. It works very well from cronjobs. I haven't seen the need for -v, since the entire log gets mailed to me. I suppose some people like redundancy, though.
I'm one of those people. And I came across this, and thought I'd document it...tried rsync to Gdrive, but it fails almost every time, with an error I didn't bother to note. That was a month or so ago, and wanted to make sure that things were working ok with this setup...so far, I've been pleased.
Still use rsync to get local copies, though, along with OTHER 'real' backup software, but I've been bitten enough by failed backups/copies, that I REALLY like to have multiple streams.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.