From 963ad5f8b1773881ab1f5a51702a99e931626786 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 3 Jun 2015 14:54:28 +0100 Subject: Updated documentation on restoration. --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4a83164..c138c21 100644 --- a/README.md +++ b/README.md @@ -115,13 +115,18 @@ user attribute list. To view this list on the server, run This command is part of the "attr" package in Debian. -To restore a file to the current directory, you need to run: +To restore a file you may use the `byteback-restore` command, which allows you to find all files matching a pattern via a command-like: - rsync -Prat --rsync-path='rsync --fake-super' byteback@mybackuphost.net:path/to/file . + byteback-restore --file /etc/passwd + +To actually restore the file, to the current directory, run: + + byteback-restore --file /etc/passwd --revision=current + +Recursive restorations are supported too: + + byteback-restore --file /srv --revision=current -The --fake-super flag only applies to the "local" end, hence the need to specfy -the rsync-path. You'll need to set up correct SSH permissions at the remote -end for this to work. The trust model --------------- -- cgit v1.2.3