From a61462693adbabf85d077f1537d152232ce80f86 Mon Sep 17 00:00:00 2001 From: enkore Date: Fri, 21 Jul 2017 11:51:46 +0200 Subject: [PATCH] docs: recreate: fix wrong "remove unwanted files" example --- docs/usage/recreate.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/usage/recreate.rst b/docs/usage/recreate.rst index 97dff5066..5ff2917fd 100644 --- a/docs/usage/recreate.rst +++ b/docs/usage/recreate.rst @@ -4,19 +4,20 @@ Examples ~~~~~~~~ :: - # Make old (Attic / Borg 0.xx) archives deduplicate with Borg 1.x archives - # Archives created with Borg 1.1+ and the default chunker params are skipped (archive ID stays the same) + # Make old (Attic / Borg 0.xx) archives deduplicate with Borg 1.x archives. + # Archives created with Borg 1.1+ and the default chunker params are skipped + # (archive ID stays the same). $ borg recreate /mnt/backup --chunker-params default --progress # Create a backup with little but fast compression $ borg create /mnt/backup::archive /some/files --compression lz4 - # Then compress it - this might take longer, but the backup has already completed, so no inconsistencies - # from a long-running backup job. + # Then compress it - this might take longer, but the backup has already completed, + # so no inconsistencies from a long-running backup job. $ borg recreate /mnt/backup::archive --recompress --compression zlib,9 - # Remove unwanted files from all archives in a repository - $ borg recreate /mnt/backup -e /home/icke/Pictures/drunk_photos - + # Remove unwanted files from all archives in a repository. + # Note the relative path for the --exclude option - archives only contain relative paths. + $ borg recreate /mnt/backup --exclude home/icke/Pictures/drunk_photos # Change archive comment $ borg create --comment "This is a comment" /mnt/backup::archivename ~