R: Re: Command line restore
absolutely_free <at> libero.it <absolutely_free <at> libero.it>
2015-11-10 11:03:13 GMT
thank you very much for you detailed answer.
I launched restore through web interface (and it completed well without
During restore, I see this file:
%RestoreReq = (
'fileList' => [
'shareDest' => 'home',
'pathHdrDest' => '/account/mail/account.it/username/',
'num' => '196',
'reqTime' => 1447152479,
'shareSrc' => 'home',
'pathHdrSrc' => '/account/mail/account.it/username',
'hostDest' => 'myserver',
'hostSrc' => 'myserver',
'user' => 'backuppc'
so.. which command should I use next time?
Thank you again!
>Da: wbppc <at> parplies.de
>Data: 09/11/2015 18.07
>A: "absolutely_free <at> libero.it"<absolutely_free <at> libero.it>, "General list for
user discussion, questions and support"<backuppc-users <at> lists.sourceforge.net>
>Ogg: Re: [BackupPC-users] Command line restore
>absolutely_free <at> libero.it wrote on 2015-11-09 16:24:29 +0100 [[BackupPC-
users] Command line restore]:
>> Hi,I am using BackupPC 3.2.1-4 (official Debian package).Is there a way to
>> launch a restore process through command line?
>> I mean, I don't want to create a tar / zip archive. I need to restore files
>> to original server.Thank you very much
>Considering the web server doesn't do the restore itself but rather instructs
>the BackupPC server to do so, there must be a way.
>P.S.: In case you were wondering *how* to launch a restore via command line,
> it's a bit complicated. The command as such is something like
> BackupPC_serverMesg restore <ip> <host> <user> <request file>
> where <ip> should probably be the IP address of <host> (but will
> apparently be looked up(*) if it isn't - presuming some piece of code
> doesn't complain first), <user> is only for logging purposes, if I
> remember correctly, and <request file> might be somewhat difficult
> to construct. Technically speaking, it isn't, it's just a Data::Dumper
> dump of a Perl hash containing the relevant information. So, what is
> the relevant information? Let's do it the easy way (for both you and
> me): initiate a restore from the web interface (and make sure to either
> direct it somewhere it won't do any harm or make (absolutely) sure you
> actually can't restore; better yet, do both), and after it has
> or failed, look in $TopDir/pc/≤host> for a file named RestoreInfo.n
> unless that turns out to be RestoreInfo.0, you can skip that part and
> just look at one of the preexisting files straightaway). Figure out
> the individual hash entries mean and fill the values to match your
> You can probably get away with setting 'num' => -1 to always refer to
> the latest backup and leaving 'reqTime' as it is (even though that
> strictly speaking, be incorrect), but I'd test that, just to be sure.
> Hint: for a full restore, I get "fileList => [ '/' ]" (among other hash
> As always, you need to run BackupPC_serverMesg as the backuppc user.
> Hope that helps.
> (*) As I read the code, <host> will be looked up if <ip> doesn't look
> like an IP. You might expect <ip> to be looked up, but that
> apparently is not the case.
BackupPC-users mailing list
BackupPC-users <at> lists.sourceforge.net