Hi,
i have a NAS with four disks, but instead of creating two RAID1 volumes, I want to have the following setup:
Snapshot A
Source: disk1
Target: disk 3
Snapshot B
Source: disk 2
Target disk 4
The problem is, that in the rsnapshot.conf only one snapshot_root can be defined (either on disk 3 or on disk 4).
I do not want to put all backups into one single target, but I was not able to find any info on this in the internet.
Most likely there are two possibilities
Alternative 1
- create different rsnapshot.conf files (rsnapshot-disk1.conf, rsnapshot-disk2.conf) with different snapshot_root
- handle them in the crontab including a link to the config file
0 */4 * * * /opt/bin/rsnapshot -c /etc/rsnapshot-disk1.conf hourly
0 */4 * * * /opt/bin/rsnapshot -c /etc/rsnapshot-disk2.conf hourly
Alternative 2
- set no_create_root to 1
- instead of using relative target paths in the "backup" statement, use absolute paths:
backup /mnt/disk1/myfiles/ /mnt/disk3/myfiles/
I did not test this second alternative, but I am quite sure that this does not work as I did not find any hints about using absolute target paths.
This alternative would also result in a very strange setup where one single config file controls multiple source to target strategies.
Alternative 3
- create a container for snapshot_root, e.g. /opt/var/rsnapshot/
- within the container create links to different targets: disk3 -> /mnt/disk3 and disk4 -> /mnt/disk4 resulting in
/opt/var/rsnapshot/disk3 -> /mnt/disk3
/opt/var/rsnapshot/disk4 -> /mnt/disk4
- backup to the disks using
backup /mnt/disk1/myfiles/ disk3/
backup /mnt/disk2/myfiles/ disk4/
This alternative would also result in a very strange setup where one single config file controls multiple source to target strategies.
It would be very helpfull, if you could add a hint in the man pages and example config file under the snapshot_root section - assuming that Alternative 1 is the best choice.
regards
Thomas
