-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Colin,
Nice idea :) I'm guessing if I can use the web interface just to "see" backups (or to download some file). I'll give that approach a try. Cheers, Ibon. Abrazo, Ibon. Usa Software Libre, tus úlceras te lo agradecerán Realizado con Software Libre. - -- GPG public key at http://sinanimodelucro.net/ibon_gmail.asc Finderprint: 1761 59B9 6DE6 0402 31B9 1872 178F A6FD 75F9 EB29 El 16/12/14 a las 11:51, Colin Shorts escribió: > > On 16/12/14 10:31, Ibon Castilla wrote: > Hi there, > > I'm trying to figure out how to execute some actions, right before > doing a backup. What I want to do is to backup a remote host (not in > the LAN) and to achieve so I have a VPN tunnel set up. My ideal > scenario would be: 1) before anything else connect to the tunnel, 2) > then backup the host, 3) after successful backup close the tunnel. >> Why not do this outside of backuppc's web interface? >> * Disable backuppc for the host. >> * Create a script to run as a cron job for the *backuppc* user that; >> 1. creates the vpn tunnel >> 2. runs backuppc for the host >> /usr/share/backuppc/bin/BackupPC_serverMesg backup <hostname> >> <hostname> backuppc <0|1> >> In the last argument, 0=incremental, 1=full >> 3. check for the job finishing and then close the tunnel >> /usr/share/backuppc/bin/BackupPC_serverMesg 'status >> host(<hostname>)' >> Parse the output of above as required and exit when "state" => >> "Status_idle" >> It's not official, but it should work fine. > >> NOTE: the backup script should be called as the backuppc user or >> breakage may occur. > >> -Colin > > > Cheers, Ibon. > >> >> ------------------------------------------------------------------------------ >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk >> _______________________________________________ >> 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/ > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlSQEu8ACgkQF4+m/XX56yl0YACdG9Ya822mHbfFRkt0P7DKgxTT iw8AnjKJ9l6QmzsyJwM6q2KSvEC5/Nqg =bD2i -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ 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/
