This is an old revision of the document!
#!/bin/bash #exclude file will contain strings or directories that should not be archived: #euroco/* #lithium/* #jason/stealthii/* #logs DAY=$(/bin/date +%m%d%y) DOW=$(/bin/date +%u) if [ $DOW == '7' ]; then /usr/bin/rsync -a --delete --inplace --exclude-from '/root/exclude' /home /media/backup/stealthsrv/weekly-$DAY else /usr/bin/rsync -a --delete --inplace --exclude-from '/root/exclude' /home /media/backup/stealthsrv/daily fi