Last active
November 20, 2019 20:19
-
-
Save hxtree/8fb3727da949c3bde70cb4ca16ea69bc to your computer and use it in GitHub Desktop.
Linux Cron to Rsync Photos
This file contains hidden or 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
| # Photos placed in this folder and subfolders get automatically uploaded to photos.example.com and removed every 5 minutes. | |
| # Only put files here that you want to be moved to the photo respository. | |
| */5 * * * * root rsync -avz --exclude='*.mov' --exclude='*.MOV' --exclude="README.md" --remove-source-files -e ssh /media/photos/ user@photos.example.com:/var/www/html/assets/input/ > /dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment