
multiple hosts pushing to a remote nfs s
Not an rsnapshot solution but... What if you had the cron-jobs on each
machine add their names to a queue-file on the backup server with
something like:
hostname >> /nfs/backup/rsnap-queue
There would be some kind of initial race to append to the file (if all the
machines kicked off their cron-jobs at the same moment) but hopefully the
nfs locking would handle it.
Then have the cron-job script wait for that machine's name to get to the
top of the list before running rsnapshot (with something like:)
while head -1 /nfs/backup/rsnap-queue | grep -cv `hostname`
do
sleep 10
done
rsnapshot
And when rsnapshot is done have the script remove themselves from the
queue with something like:
grep -v `hostname` /nfs/backup/rsnap-queue > /nfs/backup/rsnap-queue-new
mv /nfs/backup/rsnap-queue-new /nfs/backup/rsnap-queue
Another way would be to initially create a queue file with all the
hostnames in order, and have each machine wait for their name to get to
the top, then run rsnapshot, remove their name from the top and add it to
the bottom ready for the next backup. This would prevent the race
condition at the start but would stop the backups if one of the machines
died...
And of course no guarantees for my shell syntax here!
Justin
On Mon, 11 Apr 2005, Michael D. Seymour seymour-at-astro.utoronto.ca |rsnapshot-list| wrote:
Hi Rob,
Thanks for the response.
Why not do it the way the documentation suggests - run rsnapshot
centrally and then NFS export the backups for clients to pull from?
I think the documentation is talking about exporting a local directory to the
same local machine. The backup directory in our setup presently resides on a
central server, and is exported to the clients so they can push the data to
the server.
The problem with running rsnapshot on a central server is the proliferation
of nfs mounts exported from the backup clients to the server. Any time I want
to add another directory to back up, I would have to export it. The advantage
is simplifying scheduling. The central server can then do one directory at a
time, but only one. I think there was a thread earlier about parallelizing
rsnapshot.
Am I not seeing something I should?
Mike
--
Michael Seymour
Department of Astronomy & Astrophysics
University of Toronto
60 St. George Street, Toronto, ON M5S 3H8 Canada
Tel: 416-946-5433
Fax: 416-946-7287
seymour < at > astro.utoronto.ca
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss