Skip to content

Instantly share code, notes, and snippets.

@andrejb-dev
Created March 11, 2020 14:27
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 andrejb-dev/954b70e012cfbcf66223f0a3f88973f0 to your computer and use it in GitHub Desktop.
Save andrejb-dev/954b70e012cfbcf66223f0a3f88973f0 to your computer and use it in GitHub Desktop.
automated shell script to sync folder content (personal photos) to another folder with rsync
0 2 * * * /home/scripts/mirror_photos.sh
echo 'Starting photos sync...'
rsync --recursive --times --human-readable --ignore-existing /mnt/wd500/Photos /mnt/wd80/Photos --log-file=/home/rsync_logs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment