NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
wollud1969
Oct 24, 2011Aspirant
Hard links
Hi,
I've created a share on a ReadyNAS 1500 and enabled rsync to it. I use this share to backup some computers with my own backup tools, based on rsync. At the beginning I run a full backup with a plain rsync command into a subdir of the share named by the date and time, every following day a run a rsync command with the option --link-dest pointing to the former backup directory. This way I have a complete copy for everyday without wasting too much space since unchanged files appears as hard links to the same file in the former backup directory. This works on the ReadyNAS without problems.
Since this data is really important I decided to create a second backup from the data on the ReadyNAS once a week. For that purpose I created a frontview backup job which will rsync the share onto a second NAS (which will later go into a different location and is connected via VPN). I used the same approach for some other NAS to NAS backups, working without problems too.
But in this case this approach with a frontview backup, which is behind the scenes a rsync script again, does not work, since this rsync command does not consider hard links (the option -H is missing in the command line).
The consequence is the following: on the ReadyNAS (primary backup) I have the following space consumption in my backup share:
while on the NAS with the secondary backup created using frontview backup each of the three subdirs consumes 306G.
Is there any trick to get the -H into the rsync command line of the frontview backup script? Or would you (Netgear!) consider to bring this option into the next firmware release?
Cheers,
Wolfgang
I've created a share on a ReadyNAS 1500 and enabled rsync to it. I use this share to backup some computers with my own backup tools, based on rsync. At the beginning I run a full backup with a plain rsync command into a subdir of the share named by the date and time, every following day a run a rsync command with the option --link-dest pointing to the former backup directory. This way I have a complete copy for everyday without wasting too much space since unchanged files appears as hard links to the same file in the former backup directory. This works on the ReadyNAS without problems.
Since this data is really important I decided to create a second backup from the data on the ReadyNAS once a week. For that purpose I created a frontview backup job which will rsync the share onto a second NAS (which will later go into a different location and is connected via VPN). I used the same approach for some other NAS to NAS backups, working without problems too.
But in this case this approach with a frontview backup, which is behind the scenes a rsync script again, does not work, since this rsync command does not consider hard links (the option -H is missing in the command line).
The consequence is the following: on the ReadyNAS (primary backup) I have the following space consumption in my backup share:
readynas:/c/vacciniumbackup# du -skh *
306G 20111021-1924
1.8G 20111022-1138
1.6G 20111022-1218
readynas:/c/vacciniumbackup#
while on the NAS with the secondary backup created using frontview backup each of the three subdirs consumes 306G.
Is there any trick to get the -H into the rsync command line of the frontview backup script? Or would you (Netgear!) consider to bring this option into the next firmware release?
Cheers,
Wolfgang
4 Replies
- StephenBGuru - Experienced UserYou might try entering -H in the folder field.
- wollud1969AspirantAre you sure? This sounds more like a cross site scripting vulnerability than like a solution.
Nevertheless, I've just tested this approach and - thanks god - it does not work. I really would have been worried about the security of the device. - StephenBGuru - Experienced UserI'd seen a post claiming that --checksum in the "Add files and directories to be excluded as a comma separated list" did work, though there is no way to easily test that between two readynas. (didn't mean to suggest the path itself in the previous post).
- wollud1969AspirantWell, has anyone an idea where I can tweak the command line directly? Is there a configuration file?
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!