Last active
February 9, 2016 19:22
-
-
Save bdarcus/c7ba71c86df5ab514bd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
URL=http://downloads.rclone.org/rclone-current-linux-amd64.zip | |
rclonezip=./rclone-current-linux-amd64.zip | |
# update rclone, if new | |
wget -N $URL | |
# ideally, we'd only do this if file is new, but ... | |
unzip -u $rclonezip | |
cp rclone-v*-linux-amd64/rclone /usr/local/bin/ | |
rm -R rclone-v*-linux-amd64 | |
# run rclone, to backup photo directory to Amazon Cloud. | |
/usr/local/bin/rclone --config /home/bd/.rclone.conf sync /mnt2/documents/media/pictures myACD:Pictures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment