Thanks for posting your perl script. I'll dig into your scripts soon.
I though I might post my current scripts too. They are just BASH scripts.
http://collegemarket.org/greg/backup_one.sh.txt
http://collegemarket.org/greg/example_backup_all.sh.txt
Here is a brief description of each script:
backup_one.sh
This is a single case execution of my backup script
This requires that SSH passwordless entry is setup
If no arguments are passed it gives the help
You have to pass it several arguments to have it run.
sshuser - username for remote host
sshhost - remote hostname or IP address
srcdir - source directory (remost host path)
destdir - destination directory (local host path)
uselist - (y/n) to use include list. Still need source dir
listfile - filename of include-file
example_backup_all.sh
This is where you call the backup_one.sh script with the specific
arguments for a directory / subdirectories to backup.
You call the backup_one.sh for each section on each host you want backed up.
This logs the events
If you put this script in your daily cron it will also log the events in cron
If you put a .forward in /root you will be emailed the cron log of the
backup each day.
Now just watch for errors.
Im am very new at this stuff. I would love for someone to help and
make this more generic and robust. Please feel free to submit changes
and modifications for this script. Also if you find this useful, feel
free to use this. Just give me credit for my parts. You will see
where I have done the same for others.
Greg Bosen
On Tue Aug 31 08:59:22 PDT 2004, rdiff-backup-users-request < at > nongnu.org
<rdiff-backup-users-request < at > nongnu.org> wrote:
Send rdiff-backup-users mailing list submissions to
rdiff-backup-users < at > nongnu.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
or, via email, send a message with subject or body 'help' to
rdiff-backup-users-request < at > nongnu.org
You can reach the person managing the list at
rdiff-backup-users-owner < at > nongnu.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rdiff-backup-users digest..."
Today's Topics:
1. rdiff perl script (Gavin Henry)
----------------------------------------------------------------------
Message: 1
Date: Tue, 31 Aug 2004 11:16:43 +0100 (BST)
From: "Gavin Henry" <ghenry < at > perl.me.uk>
Subject: [rdiff-backup-users] rdiff perl script
To: rdiff-backup-users < at > nongnu.org
Message-ID: <47232.193.195.148.66.1093947403.squirrel < at > 193.195.148.66>
Content-Type: text/plain;charset=iso-8859-1
Hi all,
For those of you interested, here is a fairly basic perl script for
rdiff-backup.
I have much more to add to it, so the latest versin will always be at:
http://www.perl.me.uk/downloads
Let me know what you think.
P.S. The biggest change will be incorporating ssh passphrase stuff and
proper log files etc.
Gavin.
--
Just getting into the best language ever...
Fancy a yourname < at > perl.me.uk? Just ask!!!
------------------------------
_______________________________________________
rdiff-backup-users mailing list
rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
End of rdiff-backup-users Digest, Vol 21, Issue 17
**************************************************
--
Greg Bosen
-o)
/\\
_\_\/
