1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 16:26:29 +00:00

docs: recreate: fix wrong "remove unwanted files" example

This commit is contained in:
enkore 2017-07-21 11:51:46 +02:00 committed by GitHub
parent c5c361be0c
commit a61462693a

View file

@ -4,19 +4,20 @@ Examples
~~~~~~~~ ~~~~~~~~
:: ::
# Make old (Attic / Borg 0.xx) archives deduplicate with Borg 1.x archives # 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) # 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 $ borg recreate /mnt/backup --chunker-params default --progress
# Create a backup with little but fast compression # Create a backup with little but fast compression
$ borg create /mnt/backup::archive /some/files --compression lz4 $ 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 # Then compress it - this might take longer, but the backup has already completed,
# from a long-running backup job. # so no inconsistencies from a long-running backup job.
$ borg recreate /mnt/backup::archive --recompress --compression zlib,9 $ borg recreate /mnt/backup::archive --recompress --compression zlib,9
# Remove unwanted files from all archives in a repository # Remove unwanted files from all archives in a repository.
$ borg recreate /mnt/backup -e /home/icke/Pictures/drunk_photos # 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 # Change archive comment
$ borg create --comment "This is a comment" /mnt/backup::archivename ~ $ borg create --comment "This is a comment" /mnt/backup::archivename ~