You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is primarily a request for FAQ and documentation updates.
The FAQ should make it clear (probably under both the Which file types, attributes, etc. are not preserved? section, and Are there other known limitations?) that deleted files (files which did not exist in the backup being restored) are not removed if they exist in the extract destination. So a restore/extract is not currently able to perform an exact "point-in-time" restore, UNLESS the destination location did not previously exist, which also requires enough spare disk space to hold an additional copy of the entire backup, and takes forever for large backups. (See #963, #1828, #1986, #2872)
A workaround for this missing functionality, which should probably be added as an additional FAQ item is:
Use borg create to create a new (temporary) archive of the current on-disk state
Use borg diff to compare the past archive with the one created in step 1
Parse the output from step 2 and delete any files that are listed as removed
Use borg extract to restore the rest of the backup
Use borg delete to remove the temporary archive created in step 1
A good comment about why this functionality isn't present yet is here: #1986 (comment)
The text was updated successfully, but these errors were encountered:
This also helps explain (to unfamiliar users) why there is no borg restore verb. It really is just extracting the files contained in the archive, not restoring a prior state.
This is primarily a request for FAQ and documentation updates.
The FAQ should make it clear (probably under both the
Which file types, attributes, etc. are not preserved?
section, andAre there other known limitations?
) that deleted files (files which did not exist in the backup being restored) are not removed if they exist in theextract
destination. So a restore/extract is not currently able to perform an exact "point-in-time" restore, UNLESS the destination location did not previously exist, which also requires enough spare disk space to hold an additional copy of the entire backup, and takes forever for large backups. (See #963, #1828, #1986, #2872)A workaround for this missing functionality, which should probably be added as an additional FAQ item is:
borg create
to create a new (temporary) archive of the current on-disk stateborg diff
to compare the past archive with the one created in step 1removed
borg extract
to restore the rest of the backupborg delete
to remove the temporary archive created in step 1A good comment about why this functionality isn't present yet is here: #1986 (comment)
The text was updated successfully, but these errors were encountered: