2017-06-06 22:06:36 +00:00
|
|
|
.. include:: recreate.rst.inc
|
|
|
|
|
|
|
|
Examples
|
|
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
|
|
|
|
# Create a backup with little but fast compression
|
2022-06-23 23:19:19 +00:00
|
|
|
$ borg create archive /some/files --compression lz4
|
2017-07-21 09:51:46 +00:00
|
|
|
# Then compress it - this might take longer, but the backup has already completed,
|
|
|
|
# so no inconsistencies from a long-running backup job.
|
2022-06-23 23:19:19 +00:00
|
|
|
$ borg recreate -a archive --recompress --compression zlib,9
|
2017-06-06 22:06:36 +00:00
|
|
|
|
2017-07-21 09:51:46 +00:00
|
|
|
# Remove unwanted files from all archives in a repository.
|
|
|
|
# Note the relative path for the --exclude option - archives only contain relative paths.
|
2022-06-23 23:19:19 +00:00
|
|
|
$ borg recreate --exclude home/icke/Pictures/drunk_photos
|
2017-06-06 22:06:36 +00:00
|
|
|
|
|
|
|
# Change archive comment
|
2022-06-23 23:19:19 +00:00
|
|
|
$ borg create --comment "This is a comment" archivename ~
|
|
|
|
$ borg info -a archivename
|
2017-06-06 22:06:36 +00:00
|
|
|
Name: archivename
|
|
|
|
Fingerprint: ...
|
|
|
|
Comment: This is a comment
|
|
|
|
...
|
2022-06-23 23:19:19 +00:00
|
|
|
$ borg recreate --comment "This is a better comment" -a archivename
|
|
|
|
$ borg info -a archivename
|
2017-06-06 22:06:36 +00:00
|
|
|
Name: archivename
|
|
|
|
Fingerprint: ...
|
|
|
|
Comment: This is a better comment
|
|
|
|
...
|
2022-07-04 22:38:37 +00:00
|
|
|
|