recreate.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. .. include:: recreate.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # Make old (Attic / Borg 0.xx) archives deduplicate with Borg 1.x archives
  6. # Archives created with Borg 1.1+ and the default chunker params are skipped (archive ID stays the same)
  7. $ borg recreate /mnt/backup --chunker-params default --progress
  8. # Create a backup with little but fast compression
  9. $ borg create /mnt/backup::archive /some/files --compression lz4
  10. # Then compress it - this might take longer, but the backup has already completed, so no inconsistencies
  11. # from a long-running backup job.
  12. $ borg recreate /mnt/backup::archive --recompress --compression zlib,9
  13. # Remove unwanted files from all archives in a repository
  14. $ borg recreate /mnt/backup -e /home/icke/Pictures/drunk_photos
  15. # Change archive comment
  16. $ borg create --comment "This is a comment" /mnt/backup::archivename ~
  17. $ borg info /mnt/backup::archivename
  18. Name: archivename
  19. Fingerprint: ...
  20. Comment: This is a comment
  21. ...
  22. $ borg recreate --comment "This is a better comment" /mnt/backup::archivename
  23. $ borg info /mnt/backup::archivename
  24. Name: archivename
  25. Fingerprint: ...
  26. Comment: This is a better comment
  27. ...