From: Jamie C. <jca...@we...> - 2004-09-29 09:42:50
|
On Tue, 2004-09-28 at 21:52, cw wrote: > Hi, > I know someone mentioned something about doing this properly recently, > however I was thinking of an acceptable temporary workaround. > I currently have: > > Machine A does a nightly backup of its virtual servers at midnight onto > Machine B. > > I have been forced to do this over ftp as when selecting ssh it said > invalid ftp directory (bug?) > > What would be nice is if there was a way to have a cron job call the > restore script say at 1am which opens the backup from Machine A and > restores it onto Machine B. I don't have to have any IP changes or > anything because both machines are sharing a carp0 address on OpenBSD. > > It is a while since I did anything with perl, so it may take a while to > figure out hence my posting in the hope that someone more knowledgable > (of both perl and the cgi scripts in question) can look into it. At the moment, there isn't any way of automatically restoring a backup. However, this is relatively easy to add, so in the next Virtualmin I will create a restore.pl script that can be called from a Cron job or the command line to restore a backup file created by Virtualmin. - Jamie |