mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
to make the exit code behaviour consistent with files inaccessible during the backup phase, making this change to exit with code 3 if not all target files/folders are accessible for backup --------- Co-authored-by: Michael Eischer <michael.eischer@fau.de>
11 lines
521 B
Plaintext
11 lines
521 B
Plaintext
Bugfix: Exit with code 3 when some `backup` source files do not exist
|
|
|
|
Restic used to exit with code 0 even when some backup sources did not exist. Restic
|
|
would exit with code 3 only when child directories or files did not exist. This
|
|
could cause confusion and unexpected behavior in scripts that relied on the exit
|
|
code to determine if the backup was successful.
|
|
|
|
Restic now exits with code 3 when some backup sources do not exist.
|
|
|
|
https://github.com/restic/restic/issues/4467
|
|
https://github.com/restic/restic/pull/5347 |