Document that old backups are kept if rsync fails

This commit is contained in:
Fuxino
2026-10-08 17:41:17 +02:00
parent 2b91178e94
commit 22e0556b50
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -61,6 +61,10 @@ will not be copied. Multiple elements can be specified, in the same way as for t
.B \-k, \-\-keep N
Specify how many old backups (so excluding the current one) will be kept. The default behavior
is to keep them all (same as N=\-1).
Old backups are only removed if rsync completes successfully, to avoid deleting them when the
new backup may be incomplete. rsync return code 24 (source files vanished during the transfer)
is treated as success, while any other error (including return code 23, partial transfer due to error)
will prevent old backups from being removed. This does not apply when using \-\-remove\-before\-backup.
.TP
.B \-u, \-\-user USERNAME
Explicitly specify the user running the backup (in case it is needed for home directory expansion).