Backup my Linux servers to Google Drive

 1 min read

I'd created my own backup script to keep a copy of $HOME to all my Linux servers.

Install Google Drive to your Linux Server

First, you’ll need to install Google Drive to your Linux machine (debian or ubuntu tested)

wget -O drive https://drive.google.com/uc?id=0B3X9GlR6EmbnMHBMVWtKaEZXdDg
sudo mv drive /usr/sbin/drive
sudo chmod 755 /usr/sbin/drive

Next, you’ll need to type drive and then follow the instructions.

Install the Backup Script

https://gist.github.com/kwa29/458b72eb703061b1ce7981f9fccdeb86

Replace <GOOGLE_DRIVE_FOLDER_ID> with the Google Drive folder ID. This usually looks like random characters.

Tags: ,

Updated:

Leave a Comment