On Wed, Dec 08, 2010 at 11:54:13AM +1100, Dale King wrote:
> On Tue, Dec 07, 2010 at 12:38:00AM -0800, Robin Lee Powell wrote:
> > On Tue, Dec 07, 2010 at 07:58:05AM +0000, Tyler J. Wagner wrote:
> > > On Mon, 2010-12-06 at 10:51 -0800, Robin Lee Powell wrote:
> > > > IME it's *much* faster that way; you do BackupPC_TarPCCopy, and
> > > > then rsync the cpoll *without -H*. It shouldn't take any longer
> > > > than the actual data transfer time itself.
> > >
> > > So, if you wanted to copy the entire /var/lib/backuppc directory
> > > to another filesystem, what commands would you use, for example?
> >
> > sudo -u backuppc /usr/share/backuppc/bin/BackupPC_tarPCCopy
> > /var/lib/backuppc/pc | ssh $host 'cat >/tmp/pc.tar'
> > rsync -aPv /var/lib/backuppc/cpool $host:/var/lib/backuppc/
> > ssh $host 'tar -C /var/lib/backuppc/ -xvf /tmp/pc.tar'
>
> I assume you could skip the immediate tar file step (untested):
>
> rsync -aPv /var/lib/backuppc/cpool $host:/var/lib/backuppc/
> sudo -u backuppc /usr/share/backuppc/bin/BackupPC_tarPCCopy
> /var/lib/backuppc/pc |\
> ssh $host 'tar -C /var/lib/backuppc/ -xvf -)'
Yep.
I do it in seperate steps so I can process the tar file and rsync
only the affected pool files, because I'm copying stuff for just one
host.
-Robin
--
http://singinst.org/ : Our last, best hope for a fantastic future.
Lojban (http://www.lojban.org/): The language in which "this parrot
is dead" is "ti poi spitaki cu morsi", but "this sentence is false"
is "na nei". My personal page: http://www.digitalkingdom.org/rlp/
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
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/
|