User Tools

Site Tools


backuppc-notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
backuppc-notes [2015/04/17 17:42] snargbackuppc-notes [2015/04/17 17:51] snarg
Line 1: Line 1:
-=== Notes on transfering backuppc pc directories *with* hardlinks ===+==== Notes on transfering backuppc pc directories *with* hardlinks ====
  
-== Untarring with hardlinks ==+=== Untarring with hardlinks ===
 The command for extracting a tar made with BackupPC_tarPCCopy: The command for extracting a tar made with BackupPC_tarPCCopy:
-<code>tar -xPv  in newbackupfs/pc</code>+<code>cd newbackupfs/pc 
 +tar -xPv</code>
 (the P is important) (the P is important)
  
-== Piping the restore through netcat ==+=== Piping the transfe through netcat ===
 on source server: on source server:
 <code>BackupPC_tarPCCopy  /var/lib/backuppc/pc/hostname | nc mystic 9800</code> <code>BackupPC_tarPCCopy  /var/lib/backuppc/pc/hostname | nc mystic 9800</code>
Line 14: Line 15:
 <code>cd /var/lib/backuppc/pc <code>cd /var/lib/backuppc/pc
 nc -l -p 9800 | tar -xPpvf -</code> nc -l -p 9800 | tar -xPpvf -</code>
 +
 +==== Easy backuppc restore via netcat ====
 +In this example the backup hostname is propertywestlocal, and some sample restore directories are given:
 +(as backuppc on server)
 +<code>BackupPC_tarCreate -h propertywestlocal -n 1464 -s /mnt/space/blockwall-client-mirrors/propertywest.com.au -r /mnt/space/blockwall-client-mirrors/propertywest.com.au -p samba /home/samba | nc localhost 38999</code>
 +
 +(as root on target pc [backuppc server if you like])
 +<code>nc -l -p 38999 | tar -xvp</code>
  
backuppc-notes.txt · Last modified: 2018/11/26 09:00 by snarg