A Weekly Full Backup Followed by Daily Incremental Backups
The script makes a full backup on a Sunday and incremental backups of the following days. Each day that a backup is made, a new subdirectory is created. This script requires a daily cron job.
if [[ $(date +%w) == 0 ]]; then
if [[ $(date +%w) == 7 ]]; then