Backuppc: Difference between revisions

From RARForge
Jump to navigation Jump to search
(Created page with " http://blog.hinshaws.net/?p=534 source: http://blog.pepita.org/?p=249 I will explain briefly how to move the Backuppc __TOP_DIR__ to another disk. * '''Copy the real Fi...")
 
No edit summary
Line 1: Line 1:
http://blog.hinshaws.net/?p=534
http://blog.hinshaws.net/?p=534


Line 35: Line 34:
<source>
<source>
     /usr/share/backuppc/bin/BackupPC_tarPCCopy /var/lib/backuppc/pc | bar -dan -bs 4096 | tar xPf -
     /usr/share/backuppc/bin/BackupPC_tarPCCopy /var/lib/backuppc/pc | bar -dan -bs 4096 | tar xPf -
</souce>
</source>

Revision as of 17:40, 17 August 2013

http://blog.hinshaws.net/?p=534

source: http://blog.pepita.org/?p=249

I will explain briefly how to move the Backuppc __TOP_DIR__ to another disk.


  • Copy the real Files (the pool or cpool) to the new disk

I do prefer rsync but other method are possible (simple cp, tar, …) <source>

   cd /var/lib/backuppc 
   rsync -aq --exclude=pc/ ./ /new_drive/new_backuppc/

</source>

be patient this can be long… to see what’s going on replace -aq by -avP


  • Use an Internal backuppc command (BackupPC_tarPCCopy) to copy each PC hardlinks structure
this is also very long treatement. A huge amount of small hardlinks are read and relinked to the new destination

<source>

   su __BACKUPPCUSER__
   cd NEW_TOPDIR
   mkdir pc
   cd pc
   __INSTALLDIR__/bin/BackupPC_tarPCCopy __TOPDIR__/pc | tar xPf -

</source>

too keep an eye on the progress I’ve found a small tool pretty handy to monitor piped data: “bar”

<source>

   /usr/share/backuppc/bin/BackupPC_tarPCCopy /var/lib/backuppc/pc | bar -dan -bs 4096 | tar xPf -

</source>