Thanks so much for your replies.
For the advanced settings, I’ve got “Temporary files as [file; image] backup buffer:” both unchecked, the next 6 drop down menus set to “Hashed”, and “[Local; Internet] incremental image style:” both set to “Based on last image backup”.
uroni - I believe this is consistent with the “block differences - hashes” transfer mode you mention. Is that right?
FYI - I am backing up my local clients using internet mode to take advantage of the encryption.
I think it’s working correctly, but would appreciate a sanity check. When I perform an incremental backup, the web interface says that it took up ~300MB of disk space and that’s what shows up under the “Statistics” tab as well. However, the debug log shows a “HT: Copying with reflink data from…” line under each and every “HT: Copying file:…” line, and I’ve noticed that the original full backup only contains “HT: Copying file:…” lines. I believe this means that it isn’t treating any of the “new” database files as actually new in the incremental backups.
So far, so good - I think.
Instead of diving into btrfs quotas (which seemed a bit complicated), I used btrfs filesystem usage stats to support my conclusions. Please let me know if I’ve erred somewhere.
Prior to an incremental backup:
root@urbackup:/# btrfs fi usage -m -T /srv
Overall:
Device size: 1572863.00MiB
Device allocated: 285720.00MiB
Device unallocated: 1287143.00MiB
Device missing: 0.00MiB
Used: 248188.06MiB
Free (estimated): 1321321.12MiB (min: 677749.56MiB)
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 512.00MiB (used: 0.00MiB)
Data Metadata System
Id Path single DUP DUP Unallocated
1 /dev/vdb1 278536.00MiB 7168.00MiB 16.00MiB 1287143.00MiB
Total 278536.00MiB 3584.00MiB 8.00MiB 1287143.00MiB
Used 244357.91MiB 1915.02MiB 0.06MiB
Then, after that incremental backup was performed:
root@urbackup:/# btrfs fi usage -m -T /srv
Overall:
Device size: 1572863.00MiB
Device allocated: 285720.00MiB
Device unallocated: 1287143.00MiB
Device missing: 0.00MiB
Used: 248194.56MiB
Free (estimated): 1321316.62MiB (min: 677745.12MiB)
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 512.00MiB (used: 0.00MiB)
Data Metadata System
Id Path single DUP DUP Unallocated
1 /dev/vdb1 278536.00MiB 7168.00MiB 16.00MiB 1287143.00MiB
Total 278536.00MiB 3584.00MiB 8.00MiB 1287143.00MiB
Used 244362.34MiB 1916.05MiB 0.06MiB
Am I right to deduce that the filesystem only shows an additional ~6MB of disk space used? If so, that’s obviously way smaller than the ~300MB that the UrBackup web interface claims. I know btrfs filesystem usage is pretty complicated, so I may be misunderstanding the presented stats.
If this is all correct, then it’s easy enough for me to avoid relying on the disk space stats in the UrBackup web interface for these clients and just be happy that they are backing up properly. Maybe I can make a feature request to tweak the way the stats are shown in the web interface to accurately reflect this scenario, but I imagine it may not be trivial?
Please advise.