mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 17:27:31 +00:00
[DOCS] #2929 – Document how to completely delete data
Add new FAQ entry that lists two ways how to really delete files from archives. fixes #2929
This commit is contained in:
parent
07c89cd794
commit
a08b058fa0
1 changed files with 13 additions and 5 deletions
18
docs/faq.rst
18
docs/faq.rst
|
@ -335,11 +335,19 @@ also supports the ``--glob-archives`` parameter.
|
||||||
How do I remove files from an existing backup?
|
How do I remove files from an existing backup?
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|
||||||
Say you now want to remove old logfiles because you changed your
|
A file is only removed from a BorgBackup repository if all archives that contain
|
||||||
backup policy as described above. The only way to do this is to use
|
the file are deleted and the corresponding data chunks are removed from the
|
||||||
the :ref:`borg_recreate` command to rewrite all archives with a
|
repository There are two ways how to remove files from a repository.
|
||||||
different ``--exclude`` pattern. See the examples in the
|
|
||||||
:ref:`borg_recreate` manpage for more information.
|
1. Use :ref:`borg_delete` to remove all archives that contain the files. This
|
||||||
|
will of course delete everything in the archive, not only some files.
|
||||||
|
|
||||||
|
2. If you really want to remove only some specific files, you can run the
|
||||||
|
:ref:`borg_recreate` command to rewrite all archives with a different
|
||||||
|
``--exclude`` pattern. See the examples in the manpage for more information.
|
||||||
|
|
||||||
|
Finally, run :ref:`borg_compact` with the ``--threshold 0`` option to delete the
|
||||||
|
data chunks from the repository.
|
||||||
|
|
||||||
Can I safely change the compression level or algorithm?
|
Can I safely change the compression level or algorithm?
|
||||||
--------------------------------------------------------
|
--------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue