On Sun, Mar 04, 2007 at 10:23:48PM +0100, m.van.munnen < at > hccnet.nl wrote:
Op Zo, maart 4, 2007 21:55 schreef David Cantrell:
No, you can't "push" a backup to a server using rsnapshot.
If, hypothetically, we were to allow that (and see the FAQ for the
reasons why we don't) then to get it working you would need to be able to
issue rm, mv and GNU cp commands to the remote server as well as rsyncing
to it.
Oh? Maybe that's just what I'm doing. I run rsnapshot on my local machine
and is pushes the stuff to my remote NAS via a NFS share. It takes 3 times
as long as when I put the backup on a second local disk, but I guess that
is because the NAS is rather slow. I'm not shure where rm mv and cp are
used and if the stream isn't going twice over the wire, but it works.
An NFS-mounted filesystem is a local filesystem for our purposes. What
I mean is that you can't use the rsync protocol to push a backup to
another machine.
Because rsync is dealing with a "local" filesystem in your case, it is
indeed downloading copies of your files from the NAS over the network
to compare them to files on your backup targets, and then writing the
differences over NFS. Very inefficient although it works if you've got
enough network bandwidth.
I still wonder what happens when my local cp copies backup.1 on the NAS to
backup.0 on the NAS.
It makes lots of link() system calls which the NFS filesystem driver
sends over the network. At least *that* bit isn't too inefficient.
mv is used to rotate backups, rm to delete the oldest backup that we no
longer need to keep, and cp to create a daily.0 that is hard linked to
daily.1.
Of course, if you don't have GNU cp we can use our own version of cp -al
that is built in to rsnapshot, but if, like the original poster in this
thread, you wanted to push a backup to another machine using rsync, then
our own linking code isn't available on that machine so he'd have to
call cp -al (or an equivalent) that was already installed there.
--
David Cantrell
For every vengeance, there is an equal and opposite revengeance.
-- Cartoon Law X
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss