BackupPC-users

Re: [BackupPC-users] Seed Copy

2010-12-20 14:38:06
Subject: Re: [BackupPC-users] Seed Copy
From: John Rouillard <rouilj-backuppc AT renesys DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 20 Dec 2010 19:36:20 +0000
On Mon, Dec 20, 2010 at 10:56:27AM -0800, Robin Lee Powell wrote:
> On Mon, Dec 20, 2010 at 10:06:53AM -0500, barry wrote:
> > Looking for a good way to do a seed copy import into backuppc. I
> > want to be able to get the bulk of backup data on a usb disk then
> > import it into backuppc from said disk and resume rsyncs without
> > copying all the data in over the wire. Is this possible? Thanks
> 
> Yes: copy it to your backup server host, and then tell BackupPC to
> backup those files *on the server host*.  This will put them in the
> pool, which means they won't be retransferred.  After a couple of
> backups on the client are done, delete them on the server.

How does this get the files into the

   BACKUPC_ROOT/pc/hostname/backup_number

tree? It will get them into the pool, but that won't make the files
show up under the pc directory for the host in the correct share
location. Which AFAIK is the only location that rsync mode will use as
a base backup to prevent file transfer.

Your method is valuable to pre-populate the pool so that the space
used on disk won't grow, but that is a different issue from that of
the OP's.

Sadly I don't know of a good answer to get files from newhost imported
into the system. One possibility is to:

  mount the usb drive on your backup server in the same location
    that the files would be mounted on newhost

  set up an entry for newhost in BackupPC (probably using a newhost.pl
    file for settings) to back up the usb drive
    setting $Conf{ClientNameAlias} = 'backupPChost';

This should allow you to start a backup of newhost in backuppc that
will not contact newhost, but will instead connect to the backupPC
host and backup just the usb drive's contents as backup 0.

Then edit the newhost entry and remove the $Conf{ClientNameAlias}
entry and add any other shares that you want backed up.

At this point starting another full backup of newhost should use your
0th backup as a template to back up the real newhost.

I have often wished for a

  BackupPC_importTar -H hostname -d dump_number -s share \
      -r pathremove -p pathAdd

that could be used like:

  tar -cf /path/to/usb/. | BackupPC_importTar -H newhost -d 0 -s /disk1 \
      -r /path/to/usb

to build a proper tree under pc/newhost/0/f%2fdisk1. Maybe someday.

-- 
                                -- rouilj

John Rouillard       System Administrator
Renesys Corporation  603-244-9084 (cell)  603-643-9300 x 111

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-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/

<Prev in Thread] Current Thread [Next in Thread>