BackupPC-users

Re: [BackupPC-users] Execute script before backup

2014-12-16 12:20:36
Subject: Re: [BackupPC-users] Execute script before backup
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: ibon.castilla AT gmail DOT com, "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 16 Dec 2014 11:18:56 -0600
On Tue, Dec 16, 2014 at 4:31 AM, Ibon Castilla <ibon.castilla AT gmail DOT com> 
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.
>
> 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.

I haven't tried it, but I would think you could use PingCmd to run a
script that brings up the VPN (possibly needing ClientNameAlias to be
set to the IP of the remote endpoint to avoid lookups before
connecting), and perhaps a DumpPostUserCmd to close the connection.

-- 
   Les Mikesell
     lesmikesell AT gmail DOT com

------------------------------------------------------------------------------
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/