On Fri, 2007-12-21 at 12:00 +1100, [EMAIL PROTECTED] wrote: > Can anybody direct me to either an existing utiliy or a > suitable script > that is know to work and is safe to use as I have no knowledge > of > scripting and don't want to "just run" anyhing that I get from > the 'Web > in case its malicious or flawed
How about /etc/cron.daily/mirror #! /bin/sh # rsync -a -e ssh /home/ eeyore.home:/home/tigger rsync -a -e ssh /etc/ eeyore.home:/home/tigger/etc rsync -a -e ssh /var/spool/mail/ eeyore.home:/home/tigger/mail rsync -a -e ssh /var/named/ eeyore.home:/home/tigger/named mysqldump --all-databases -uroot -psecret >all.sql scp all.sql eeyore.home:/home/tigger/`date +%a`.sql If you use another machine uses public_keys for ssh as root If you use same machine leave out the ssh bit. RTM about rsync James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
