SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Snapshot entire server
Author Message
Post Snapshot entire server 
Hi all

I've problem with rsnapshot (fantastic utilities...lots of thanks for
developpers).

I want snapshot a server (remotly via ssh) and I've this configuration

config_version 1.2
....
one_fs 1
snapshot_root /snapshots/myserver
....
backup root < at > myserver:/
backup root < at > myserver:/usr/local/


On my myserver It's two partition (one for / and one for /usr)

When I launch the rsnapshot everthing work for / but for /usr/local I've
every day full copy (not hard-link). Well that's expensive snapshot ;-)

Maybe I can't make backup two file-system sharing a mounting point ? Or
maybe it's some little bug ?

If it's not a bug how can I snapshot my server ?

Regards.


--
Albert SHIH
Universite de Paris 7 (Denis DIDEROT)
U.F.R. de Mathematiques.
7 ième étage, plateau D, bureau 10
Heure local/Local time:
Wed Mar 8 00:21:19 CET 2006


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Snapshot entire server 
On Wed, Mar 08, 2006 at 12:26:35AM +0100, Albert Shih wrote:
Hi all

I've problem with rsnapshot (fantastic utilities...lots of thanks for
developpers).

I want snapshot a server (remotly via ssh) and I've this configuration

config_version 1.2
....
one_fs 1
snapshot_root /snapshots/myserver
....
backup root < at > myserver:/
backup root < at > myserver:/usr/local/


On my myserver It's two partition (one for / and one for /usr)

When I launch the rsnapshot everthing work for / but for /usr/local I've
every day full copy (not hard-link). Well that's expensive snapshot ;-)

My guess is that when you do the backup of /, rsync is deleting everything
under usr (because that is not in the remote root filesystem, and rsync has
been told to delete anything that is not present on the remote filesystem).

If that is your problem, you could remove --delete-excluded from
rsync_long_args, and then exclude /usr from the backup of /.
#rsync_long_args --delete --numeric-ids --relative --delete-excluded
rsync_long_args --delete --numeric-ids --relative
backup root < at > myserver:/ myserver/ exclude=/usr/

Or another way you could do it is by putting the root backup into a
different sub-directory (eg: "root"), like this (assuming --relative):
backup root < at > myserver:/ myserver/root/
backup root < at > myserver:/usr/local/ myserver/

Then if the rsync of / deletes everything in myserver/root/usr, it
will not interfere with the backup in myserver/usr/local.

Note that rsnapshot 1.2.3 (and I think 1.2.2) has a problem with backing up
a remote root like that - it will end up backing up root's home directory
instead. If that was your problem, you could fix it by using "myserver:/."
instead of "myserver:/" (putting an extra dot on the end).


--
Albert SHIH
Universite de Paris 7 (Denis DIDEROT)
U.F.R. de Mathematiques.
7 i?me ?tage, plateau D, bureau 10
Heure local/Local time:
Wed Mar 8 00:21:19 CET 2006


--
___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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