On Thursday 17 August 2006 12:23, OXx wrote: > I found to use it with dump but not to restore backups. > Are you sure it is BackupPC_serverMesg file because I saw this post > http://sourceforge.net/mailarchive/message.php?msg_id=10659594 . He says > use backuppc_restore
Hmm, looks like you're right and I spoke too hasty. > If someone have an example to restore for example: > Backup Number: 8 > Destination Host: 192.168.0.5 > Module rsyncd: www > path: /stats I looked at the source of BackupPC_restore and I think it works like this (although my perl isn't very good, so please correct me if I'm wrong): call BackupPC_restore with <hostIP> <client> <reqFileName> where <hostip> is 192.168.0.5 and <client> is the dns name that goes with that (so backuppc knows which configfile to choose). <reqFileName> is the name of the file which contains a list of files you want restored relative to $TopDir/pc/<client>. I can't quite figure out what the format of this file is, so I'm guessing each file on a new line. So you could do something like: su backuppc cd /var/lib/backuppc/pc/<client> for i in '/8/fwww/fstats/*'; do echo '$i' >> tmpfile; done /usr/share/backuppc/bin/BackupPC_restore 192.168.0.5 <client> tmpfile rm tmpfile which would restore everything using a direct restore in the stats directory of the docs module. Note: I didn't test any of this, so I could be totally wrong! Please try on a test setup first :) Also note: if this works, the standard caution applies as you are doing stuff the webinterface has no clue about, so you could do this just as backuppc is fiddling about with these files with all kinds of side effects. > Best Regards > oXxY Hth, Guus ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ BackupPC-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
