Regain Space After Removing Files #8201
Answered
by
ThomasWaldmann
blueray453
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Suppose i have removed a lot of files from /specific/folder/location.
now i want to regain space. so i do the following.
borg recreate . --exclude /specific/folder/location
borg compact .
Is this an acceptable approach?
Yes (I did not check the precise syntax and matching though).
To prevent unintended data loss, you should always add --dry-run --list
to borg recreate and make very sure (by checking the output) that it
really would do what you want it to do (and not e.g. exclude files that
you wanted to keep).
After you made sure, remove the --dry-run and run recreate again, so it
actually recreates the archives.
Is there any easier way to do this?
Not if you want to keep all these archives.
If you do not need all of them, you could also first delete the unwanted
ones and then recreate the wanted ones.
…--
GPG Fingerprint: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
blueray453
-
I mean after deleting large files, there is still files in /specific/folder/location I just want to keep one copy in all archives where it will keep the current state of /specific/folder/location In my case: Is there any command that will remove (from all archives) only the files that are not present in /specific/folder/location from /specific/folder/location. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose i have removed a lot of files from /specific/folder/location. now i want to regain space. so i do the following.
Is this an acceptable approach.
Is there any easier way to do this?
Beta Was this translation helpful? Give feedback.
All reactions