summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Cozic <laurent22@users.noreply.github.com>2017-09-21 11:55:08 +0100
committerGitHub <noreply@github.com>2017-09-21 11:55:08 +0100
commit1ed730e61451133b6fd52b1ef3ff672ffb166d6a (patch)
tree3e7d179f496c325206315ef6ec9463fb14a2918f
parent9a5afa66f4bcada071219ec168ffc86904a0c828 (diff)
Update README.md
Added "How to restore" section
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 99cc635..e0e4da2 100644
--- a/README.md
+++ b/README.md
@@ -63,6 +63,11 @@ To display the rsync options that are used for backup, run `./rsync_tmbackup.sh
rsync_tmbackup --rsync-set-flags "--numeric-ids --links --hard-links \
--one-file-system --archive --no-perms --no-groups --itemize-changes" /src /dest
+
+
+## How to restore
+
+The script creates a backup in a regular directory so you can simply copy the files back to the original directory. You could do that with something like `rsync -aP /path/to/last/backup/ /path/to/restore/to/`. Consider using the `--dry-run` option to check what exactly is going to be copied. Use `--delete` if you also want to delete files that exist in the destination but not in the backup (obviously extra care must be taken when using this option).
## Features