For incremental rsync backups you need to use the rsync option "-u" rsync -auv <source> <dest> The _u_ directive. i.e. update, skips any files that are already stored at the destination.
However, reading form your script, you create an empty directory every time to back up your files. Therefore, the script looks like it will not ever perform an incremental backup. One more note: take great care with adding or omitting the "/" at the end of source and destination paths. I recommend you try out a variation of rsync commands with the --dry-run option to see what would happen without really doing it. Once you find the combination of options you want, simply drop the --dry-run option and you're off to production backup. Hope that helps. Hendrik Joe S wrote: > I have a question for someone with experience with rsync backups. > > I am using rsync for incremental backups. I am backing up from > one hard drive to another: backing up directories under / on one > hard drive to /mnt/backup/squeeze/backup.0 on the second hard > drive. On the second hard drive I am using rsync with the hard > link option (link-dest=) to link backup.0 to the previous backup > (backup.1). > > I checked the amount of space used on the backups on > /mnt/backup/squeeze/ > Each backup from backup.0 to backup.7 under squeeze is 12G. The > total for squeeze is 17G. All the backups are hard linked and I > am not making much for changes. Why am I adding 5G? > > Thanks > > Backup Script > #!/bin/bash > mount /mnt/backup > cd /mnt/backup/squeeze/ > rm -rf backup.7 > mv backup.6 backup.7 > mv backup.5 backup.6 > mv backup.4 backup.5 > mv backup.3 backup.4 > mv backup.2 backup.3 > mv backup.1 backup.2 > mv backup.0 backup.1 > cd / > rsync -am --delete-after --filter="merge /root/scripts/filter- > rule" --delete-excluded \ > --link-dest=/mnt/backup/squeeze/backup.1 \ > / /mnt/backup/squeeze/backup.0 > umount /mnt/backup > > > Filter rule: > - /home/joe/downloads/ > - /home/joe/.local/share/Trash/ > + /home/ > + /etc/ > + /root/ > + /boot/ > + /usr/ > + /usr/local/ > - /usr/* > - /* > _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

