BackupPC restore files locally
The easiest way to restore files from BackupPC is web interface, but if You are desperated to use command-line style You can try this:
su backuppc -c "/opt/BackupPC/bin/BackupPC_tarCreate -h myLaptop \ -n 23 -s / etc" > /tmp/etc.tar
where:
- backuppc (after su) - name of user BackupPC is running as
- /opt/BackupPC/bin - path where BackupPC is installed
- myLaptop - name of host in BackupPC (usually DNS name)
- 23 - backup number you want to restore (can be relative ex: -1)
- / - is share name
- etc - directory you want to restore (relative to share name)
- /tmp/etc.tar - file with restored files
Of course usually You will compress this file:
su backuppc -c "/opt/BackupPC/bin/BackupPC_tarCreate -h myLaptop \ -n 23 -s / etc" | gzip > /tmp/etc.tgz
Detailed information on BacpupPC documentation page.
Komentarze
Log in or create a user account to comment.