SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Multiple SNAPSHOT_ROOT (request to update man/faq/rsnapshot.
Author Message
Post Multiple SNAPSHOT_ROOT (request to update man/faq/rsnapshot. 
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

Post Multiple SNAPSHOT_ROOT (request to update man/faq/rsnapshot. 
Hallo, Thomas,

Du meintest am 17.04.11:

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

That's a reliable way.
Don't forget to define different *.log, *.pid and snapshot root dir in
the two *.conf files.

And it may be a good idea running the two "hourly" jobs at different
times.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB