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

------------------------------------------------------------------------------
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
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to