I discovered, a few weeks ago, a backup script called Flexbackup which I rather like.
I can use it to backup a remote machine via ssh. Once ssh is setup to do a password-less login Flexbackup can do the rest. What it doesn't provide is an option to restore to a remote machine. Is there a way of retrieving a file or files from a tape on the local machine, using Afio, and passing it across directly to the remote machine via ssh rather than restoring locally and copying across?
Any technical gems gratefully received.
Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
On Monday 01 March 2004 21:28, Barry Samuels wrote:
I discovered, a few weeks ago, a backup script called Flexbackup which I rather like.
I can use it to backup a remote machine via ssh. Once ssh is setup to do a password-less login Flexbackup can do the rest.
Any technical gems gratefully received.
I have some kludgey backup scripts that used to take care of a pool of CVS servers at a Games Development company I used to work at.
Run from a central administration machine they remotely tar'ed and compressed the respoitory and then sent it across to the central machine where it was dumped onto tape. Uses make to allow the jobs to run concurrently on all of the machines, provides full email of error conditions and all of the other usual goodies, again used ssh to log into each of the CVS machines. Used to same system to grab backups of a game server and CRM type system at Level 3 Co Lo.
If anyone is interested then I can mail them over to you, probably need some refinement but they do the job.
Sorry Barry but they didn't cover the restore operation.
Barry Samuels wrote:
I discovered, a few weeks ago, a backup script called Flexbackup which I rather like.
I can use it to backup a remote machine via ssh. Once ssh is setup to do a password-less login Flexbackup can do the rest. What it doesn't provide is an option to restore to a remote machine. Is there a way of retrieving a file or files from a tape on the local machine, using Afio, and passing it across directly to the remote machine via ssh rather than restoring locally and copying across?
Any technical gems gratefully received.
I recommend a look at rdiff-backup which does all you require using rsync and ssh:
http://rdiff-backup.stanford.edu/index.html
Supplementary documentation referenced on the site will help you set up keyless ssh, but I suspect it'll be pretty much the same method as flexbackup uses.
Cheers, Laurie.
On Mon, Mar 01, 2004 at 09:28:19PM +0000, Barry Samuels wrote:
I discovered, a few weeks ago, a backup script called Flexbackup which I rather like.
I can use it to backup a remote machine via ssh. Once ssh is setup to do a password-less login Flexbackup can do the rest. What it doesn't provide is an option to restore to a remote machine. Is there a way of retrieving a file or files from a tape on the local machine, using Afio, and passing it across directly to the remote machine via ssh rather than restoring locally and copying across?
Seeing as no-one else has, I feel I should mention the 'industry standard' tools (if there is such a thing) for ext filesystems, dump & restore. Most modern versions can use ssh. You will also need rmt installed on the tape host.
$ export RSH=ssh $ dump ... -f user@tapehost:/dev/nst0 ... $ restore ... -f user@tapehost:/dev/nst0 ...
If you are looking to regularly back up a few machines, I would recommend amanda. The effort of setting it up is well worth it for the ease of operation.