Backup Rsync+SSH Server
I know this question has been done to death but I can't find anything that applies directly to this situation.
I have a group of around 20 production machines, which need to be backed up nightly to a Server. Since the "push" method wouldn't work to well as the machines are turned off for night, I need a pull method that issues a shutdown command after that machine is done backing up. I've used Cron with SSH+Rsync for nightly backup push jobs, i.e. the client sends it's backup to the server Code:
# m h dom mon dow command I'm thinking Cron is going to get a bit crowded and messy, so is there an easy way to script what I want? Do I still have to make a separate script for each machine, this would defeat the purpose of scripting and I could just stay with cron. What setup is best suited in this situation? |
Quote:
http://www.cyberciti.biz/faq/redhat-...apshot-server/ http://rsnapshot.org/ it is very configurable too, quick and easy. it is possible to have it up and running in a few minutes |
Thanks. That looks pretty good. How is this sample config? I think that would accomplish what I want, except for shutting down the machine after it's done being backed up at the end of the day...
Code:
# rsnapshot.conf |
Quote:
as for shutdown, you can add this as a sep cron on the server itself...? |
Yeah, I guess I could do it individually on every machine, or I get Wake on Lan. Thank you!
|
Quote:
|
I was wondering if that would work, but how does the script know which machine to /sbin/shutdown -h now?
|
Quote:
something like Code:
backup_script /usr/sbin/ssh user@server "shutdown -h now" check the examples in /etc/rsnapshot.conf and test first.....with any commands...other then shutdown of course :) |
All times are GMT -5. The time now is 12:31 AM. |