BackupPC-users

Re: [BackupPC-users] Not backing up more that first module/directory (rsyncd)

2009-04-14 08:44:48
Subject: Re: [BackupPC-users] Not backing up more that first module/directory (rsyncd)
From: "Boniforti Flavio" <flavio AT piramide DOT ch>
To: "Adam Goryachev" <mailinglists AT websitemanagers.com DOT au>, "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 14 Apr 2009 14:40:53 +0200
> I have (successfully) been using a script to do this for the 
> past few months. I copied this from somewhere else (the wiki 
> perhaps) and have tuned locally since then...
> 
> I created a script in /etc/backuppc/scripts/hostname.sh 
> #!/bin/bash TERM=vt100 /usr/bin/screen -d -m -S hosttunnel 
> /usr/bin/ssh -o
> ServerAliveInterval=15 -o ServerAliveCountMax=10 -q -x -C -L
> 1516:127.0.0.1:873 -l root host
> /bin/sleep 20
> 
> # NOTE: sleep 20? we needed to introduce a small delay to 
> ensure the tunnel was fully established before rsync started 
> # NOTE: "-S hosttunnel" helps us identify the process - so we 
> can kill it when the backups are finished # NOTE: This could 
> be done with dtach instead of screen # NOTE: the string host 
> should be replaced with the hostname
> 
> $Conf{ClientNameAlias} = '127.0.0.1';
> $Conf{DumpPreUserCmd}='/etc/backuppc/scripts/host.sh';
> $Conf{DumpPostUserCmd}='/usr/bin/pkill -u backuppc -f host'; 
> $Conf{RestorePreUserCmd}='/etc/backuppc/scripts/host.sh';
> $Conf{RestorePostUserCmd}='/usr/bin/pkill -u backuppc -f 
> host'; $Conf{RsyncdClientPort}='1516'; # This 1516 matches 
> the 1516 in the above script, each tunneled host should use a 
> unique port number so that parallel backups don't interfere 
> with each other
> 
> 
> Hope that helps, if anyone sees something wrong with the 
> above config, please let me know.

I'm interested in understanding how and why it is working in your
environment: can you explain?

Thanks...

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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/