On Thu, 2025-05-08 at 16:57 -0700, Samuel Sieb wrote:
> On 5/8/25 4:54 PM, ToddAndMargo via users wrote:
> > Fedora 41
> > borgbackup-1.4.1-1.fc41.x86_64
> > 
> > In my testing an hot to write up I made myself of borg
> > backup, I found something confusing.
> > 
> > I backed up three file and restored them (somewhere else).
> > The sha256sum matched the originals but the du's did not.
> > What am I missing?
> 
> I'm guessing that the backup program doesn't handle sparse files.
> 
> The checksum will match because the empty space is zeroed either way.

Borg does handle sparse files on backing up, but may not on restoring
(i.e. may just write null blocks rather than creating holes). This is a
common feature of many backup programs. However there appears to be
some work being done on this, though the last update is several years
ago. It's not clear from the docs what the current situation is:

https://github.com/borgbackup/borg/issues/14

On BTRFS filesystems I think this makes little if any difference. AFAIK
BTRFS would handle it at a lower level.

poc
-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to