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
Then, create an archive for userA and another for userB:
$ export BORG_REPO=borg
$ borg init -e none
$ borg create -Cnone ::userA-monday userA
$ borg create -Cnone ::userB-monday userB
The deduplicated size is (as expected) half the original size, for each user:
$ borg info ::userA-monday | grep -A2 Dedup Original size Compressed size Deduplicated sizeThis archive: 20.97 MB 20.97 MB 10.49 MBAll archives: 230.69 MB 230.69 MB 115.35 MB
$ borg info ::userB-monday | grep -A2 Dedup Original size Compressed size Deduplicated sizeThis archive: 209.72 MB 209.72 MB 104.86 MBAll archives: 230.69 MB 230.69 MB 115.35 MB
Now, let's create a new archive for each user (without any changes):
$ borg create -Cnone ::userA-tuesday userA
$ borg create -Cnone ::userB-tuesday userB
Now, the deduplicated size is basically 0 for all archives (if we remove exactly one archive, it won't save any space):
$ borg info ::userA-monday | grep -A2 Dedup Original size Compressed size Deduplicated sizeThis archive: 20.97 MB 20.97 MB 433 BAll archives: 461.39 MB 461.39 MB 115.35 MB
$ borg info ::userA-tuesday | grep -A2 Dedup Original size Compressed size Deduplicated sizeThis archive: 20.97 MB 20.97 MB 435 BAll archives: 461.39 MB 461.39 MB 115.35 MB
$ borg info ::userB-monday | grep -A2 Dedup Original size Compressed size Deduplicated sizeThis archive: 209.72 MB 209.72 MB 433 BAll archives: 461.39 MB 461.39 MB 115.35 MB
$ borg info ::userB-tuesday | grep -A2 Dedup Original size Compressed size Deduplicated sizeThis archive: 209.72 MB 209.72 MB 435 BAll archives: 461.39 MB 461.39 MB 115.35 MB
But in practice, we may still be interested in knowning the deduplicated size of all archives of userA. Is it possible to get this information easily?
Currently, it seems we can retrieve the global deduplicated size ("All archives"), or the deduplicated size of a single archive, but not that of a set of archives (typically for a given prefix). As a consequence, as soon as a new archive is created with few changes, the deduplicated size is meaningless in practice.
The filtering options of borg info just list individual archives matching the filter, but not the deduplicated size of the set of resulting archives:
Yeah, for the archive's deduped size, borg always computes what this archive adds (size of all unique chunks [chunks ONLY used by this archive]) compared to the rest of the repo.
ThomasWaldmann
changed the title
Deduplicated size of a given prefix?
Deduplicated size of a given set of archives?
Mar 20, 2021
Have you checked borgbackup docs, FAQ, and open Github issues?
Yes, in praticular https://borgbackup.readthedocs.io/en/stable/usage/info.html
Is this a BUG / ISSUE report or a QUESTION?
A question (or feature request).
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.1.15
Operating system (distribution) and version.
Linux (Debian sid).
Describe the problem you're observing.
Let's create two directories to backup, each containing a duplicated file (respectively 10M and 100M):
Then, create an archive for
userA
and another foruserB
:The deduplicated size is (as expected) half the original size, for each user:
Now, let's create a new archive for each user (without any changes):
Now, the deduplicated size is basically 0 for all archives (if we remove exactly one archive, it won't save any space):
But in practice, we may still be interested in knowning the deduplicated size of all archives of
userA
. Is it possible to get this information easily?Currently, it seems we can retrieve the global deduplicated size ("All archives"), or the deduplicated size of a single archive, but not that of a set of archives (typically for a given prefix). As a consequence, as soon as a new archive is created with few changes, the deduplicated size is meaningless in practice.
The filtering options of
borg info
just list individual archives matching the filter, but not the deduplicated size of the set of resulting archives:The text was updated successfully, but these errors were encountered: