Re: [BackupPC-users] how to restore one extra file if a restore is requested
2009-01-11 09:12:20
Craig Barratt wrote:
> Matthias writes:
>
>> If a user requests a restore I want to restore one extra file and handle
>> it by the RestorePostUserCmd.
>> Is it possible to request this additional restore with BackupPC_restore
>> during the RestorePreUserCmd or RestorePostUserCmd ?
>
> Yes, you could do it by emulating what the CGI interface does.
>
> You will need to write a perl script that would create a restore
> request file using Data::Dumper (see the CGI code for an example),
> and then issue a restore command using BackupPC_serverMesg.
>
> Be careful you don't end up with an infinite loop, where the
> second restore triggers a third, etc...
>
> See bin/BackupPC_archiveStart for an example of the basic steps,
> since this script does a similar thing for archives as you want
> to do with restores.
>
> Craig
>
Thanks Craig,
I was a Pascal/C/Fortran/Assembler programmer 20 years ago ;-). Today it is
possible for me to write script programs and a little bit in C/C++.
I don't know anything about perl so it seems impossible for me to write the
above script.
I will try to unzip the necessary file and copy it to the destination.
Maybee someone else needs the above script too and let me participate at his
delivery :-)
have a great day
Matthias
--
Don't Panic
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|