mirror of
https://github.com/restic/restic.git
synced 2025-12-12 08:31:51 +00:00
backup: return exit code 3 if not all targets are available (#5347)
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>
This commit is contained in:
11
changelog/unreleased/issue-4467
Normal file
11
changelog/unreleased/issue-4467
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user