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
Copy file name to clipboardexpand all lines: README.md
+20
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ of your `kvm/qemu` virtual machines.
73
73
-[Backup fails with "Timed out during operation: cannot acquire state change lock"](#backup-fails-with-timed-out-during-operation-cannot-acquire-state-change-lock)
74
74
-[Backup fails with "Failed to bind socket to /var/tmp/virtnbdbackup.XX: Permission denied"](#backup-fails-with-failed-to-bind-socket-to-vartmpvirtnbdbackupxx-permission-denied)
75
75
-[High memory usage during backup](#high-memory-usage-during-backup)
76
+
-[fstrim and (incremental) backup sizes](#fstrim-and-incremental-backup-sizes)
76
77
-[Test your backups!](#test-your-backups)
77
78
-[Links](#links)
78
79
@@ -1220,6 +1221,25 @@ version if using `virtnbdbackup` on any other distribution.
1220
1221
1221
1222
See also: https://github.com/abbbi/virtnbdbackup/issues/8
1222
1223
1224
+
## fstrim and (incremental) backup sizes
1225
+
1226
+
If virtual machines have configured disks with discard option and fstrim is
1227
+
running frequently, trimmed blocks are detected during backup operation by
1228
+
default.
1229
+
1230
+
If, for example, the fstrim operation frees 30 GiB of disk space, and the
1231
+
virtual machine has only 5 GiB of changed data blocks, 30 GiB of data
1232
+
will be skipped during incremental backup.
1233
+
1234
+
This works by comparing the complete allocation bitmap of the virtual machine
1235
+
disk images during incremental backup.
1236
+
1237
+
Depending on your hardware and the size of the virtual disks, the operation to
1238
+
query the complete allocation bitmap during incremental backup, may take longer
1239
+
than to backup the complete changeset. Therefore, you can disable the detection
1240
+
of sparse/fstrimmed blocks using the `--no-sparse-detection` option.
1241
+
1242
+
1223
1243
## Test your backups!
1224
1244
1225
1245
The utility is provided "as is", i take no responsibility or warranty if you
0 commit comments