recreate.rst 1008 B

123456789101112131415161718192021222324252627282930
  1. .. include:: recreate.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # Create a backup with fast, low compression
  6. $ borg create archive /some/files --compression lz4
  7. # Then recompress it — this might take longer, but the backup has already completed,
  8. # so there are no inconsistencies from a long-running backup job.
  9. $ borg recreate -a archive --recompress --compression zlib,9
  10. # Remove unwanted files from all archives in a repository.
  11. # Note the relative path for the --exclude option — archives only contain relative paths.
  12. $ borg recreate --exclude home/icke/Pictures/drunk_photos
  13. # Change the archive comment
  14. $ borg create --comment "This is a comment" archivename ~
  15. $ borg info -a archivename
  16. Name: archivename
  17. Fingerprint: ...
  18. Comment: This is a comment
  19. ...
  20. $ borg recreate --comment "This is a better comment" -a archivename
  21. $ borg info -a archivename
  22. Name: archivename
  23. Fingerprint: ...
  24. Comment: This is a better comment
  25. ...