Skip to content

Instantly share code, notes, and snippets.

@bdarcus
Last active February 9, 2016 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdarcus/c7ba71c86df5ab514bd2 to your computer and use it in GitHub Desktop.
Save bdarcus/c7ba71c86df5ab514bd2 to your computer and use it in GitHub Desktop.
#! /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