first some background information:
I regularly back up my / and /home from my desktop PC and my netbook to my DS107 (500GB) (if you are interested in my script you can find it here) .
On the DS are also stored other files from two windows machines
To have not only one backup I have an external USB hard drive (ext3, 640GB). I used the DSM 2.2 WebUI to set up the built in backup service. This worked for all folders except the one that contains the backup from my linux machines. It seems that the hard links weren't recognized so that the files were transferred multiple times so that the backup used way too much disk space.
I then wrote a small script inspired by my existing one and one I found in the wiki. From this time it seems that hard links weren't a problem any more due to the rsync option -H (what a pity that the -v option doesn't work for any operation on the DS to see the whole output).
The new problem seem to be the symlinks now. When running my script I receive a lot of error messages from this type:
- Code: Select all
rsync: open(backup/molungus-home/2009-09-27/.local/share/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-crossover-xlthtml.xpm) failed!!: No such file or directory (2)
or
- Code: Select all
rsync: open(backup/molungus-home/2009-09-27/bin/cxoffice/doc/en/html/images.common) failed!!: Is a directory (21)
This affects symlinks that point to files outside the backed up folder as well as to files inside the same tree. Anyone knows what I have to improve/fix? Maybe in my script?
- Code: Select all
# Backup source device/share/directory/etc
BACKUP_SOURCE=/volume1/thomas/
# Backup destination device/directory
BACKUP_TO_DEV=/volumeUSB1/usbshare/thomas_backup/
rsync -q -v -axH --no-inc-recursive --delete --exclude="@eaDir" $BACKUP_SOURCE $BACKUP_TO_DEV
The option --no-inc-recursive was inserted because it solved a problem with some links on my linux machine but it seems that it doesn't work here.
Thanks in advance
barghest


