BackupPC-users

[BackupPC-users] Execute script before backup

2014-12-16 05:33:20
Subject: [BackupPC-users] Execute script before backup
From: Ibon Castilla <ibon.castilla AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 16 Dec 2014 11:31:46 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

What I try so far:
* Play with $Conf{DumpPreUserCmd}. As I have read in the
documentation, this parameter has been thought to execute some
commands after I reach the host, and before doing the dump, so not
applicable to my scenario.
* Play with $Conf{RsyncClientCmd}. Before 'ssh-ing' anything I have
tried to set up the VPN tunnel, but again there is a host resolution
command before this, and obviously it fails.

Before going any deeper I would like to know if I'm missing a
proper/official way to achieve what I want. Any suggestion? :)

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlSQCg0ACgkQF4+m/XX56ylaFgCdEWOLaYD53X262YlAe3og6iId
reIAn06O+lXSyJ89mLgE3+pmdjqotf7K
=D5We
-----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
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/