Welcome! » Log In » Create A New Profile

Multiple SNAPSHOT_ROOT (request to update man/faq/rsnapshot.

Posted by Anonymous 
Multiple SNAPSHOT_ROOT (request to update man/faq/rsnapshot.
April 18, 2011 05:58AM
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
Multiple SNAPSHOT_ROOT (request to update man/faq/rsnapshot.
April 18, 2011 07:38AM
Hallo, Thomas,

Du meintest am 17.04.11:

Quote

i have a NAS with four disks, but instead of creating two RAID1
volumes, I want to have the following setup:
Quote

Snapshot A
Source: disk1
Target: disk 3
Quote

Snapshot B
Source: disk 2
Target disk 4
Quote

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
Quote

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. [p.sf.net]
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
[lists.sourceforge.net]
Sorry, only registered users may post in this forum.

Click here to login


Parse error: syntax error, unexpected 'GoogleAnalyticsObject' (T_STRING), expecting ']' in /tmp/tpl-lightweight_blue-footer-bc9d4c1f6d5e5fdfdcbff526fb7bae92.php-stage2 on line 6