BackupPC-users

[BackupPC-users] Importing data into backuppc with a chroot

2011-06-01 02:30:02
Subject: [BackupPC-users] Importing data into backuppc with a chroot
From: martin f krafft <madduck AT madduck DOT net>
To: backuppc users list <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 1 Jun 2011 08:28:47 +0200
Dear list,

since I cannot edit the wiki, I wanted to make sure to share this
supplemental method of

  
https://sourceforge.net/apps/mediawiki/backuppc/index.php?title=How_to_import_data_for_a_backup

with you.

We were tasked with importing a host with several hundreds of
gigabytes behind a relatively slow link, and so we employed the
station wago method[0]: we shipped a filesystem dump to the remote
location and made it available on a host on the same network segment
as the BackupPC server and ran an rsync to the remote location to
make sure the dump was up-to-date.

  0. http://en.wikipedia.org/wiki/Sneakernet#Non-fiction

Then — and this is the nice part — we chrooted into the filesystem,
started sshd on port 22222, and added the following to
~backuppc/.ssh/config on the BackupPC server:

  Host the.new.host
    Hostname the.temporary.host
    HostKeyAlias the.new.host
    CheckHostIP no
    AddressFamily inet
    Port 22222

After the initial backup had completed, just removing the stanza
makes BackupPC interact with the actual host — but it never knew the
difference.

Hope this helps someone,

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"marriage is the only adventure open to the cowardly."
                                                           -- voltaire
 
spamtraps: madduck.bogus AT madduck DOT net

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
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>