3 ms·
> # avoidng collisions with other rsync processes Use https://github.com/instacart/ohmycron https://github.com/instacart/ohmycron > MONTHROTATE=monthrotate #
by 0xbadcafebee 5y ago
> # avoidng collisions with other rsync processes
Use https://github.com/instacart/ohmycron https://github.com/instacart/ohmycron
> MONTHROTATE=monthrotate # use DD instead of YYMMDD
Use https://rotate-backups.readthedocs.io/en/latest/readme.html https://rotate-backups.readthedocs.io/en/latest/readme.html
> $RSYNC -avR "$SOURCE" "${RSYNCCONF[@]}"
Create a one-command script with the hardcoded rsync command you want to use and replace the directory to sync as a command-line argument, e.g.
#!/bin/sh
rsync -avR \
--delete \
--exclude=/Volumes/Raid/.DocumentRevisions-V100 \
--exclude=/Volumes/Raid/.TemporaryItems --exclude=/Volumes/Raid/.Trashes \
--exclude=/Volumes/Raid/.apdisc \
"$@"
> $DATE >> $LOG
Use logrotate
> mail a report
Use Cron's built-in mail feature