Help with a simple incremental backup script
- by Evan
I'd like to run the following incomplete script weekly in as a cron job to backup my home directory to an external drive mounted as /mnt/backups
#!/bin/bash
#
TIMEDATE=$(date +%b-%d-%Y-%k:%M)
LASTBACKUP=pathToDirWithLastBackup
rsync -avr --numeric-ids --link-dest=$LASTBACKUP /home/myfiles /mnt/backups/myfiles$TIMEDATE
My first question is how…