tar exits with status 1 when uploads are modified or deleted by a sidekiq job, so we need to treat it like status 0.
According to the documentation it should be safe to ignore status 1 ("Some files differ"):
> If tar was given `--create', `--append' or `--update' option, this exit code means that some files were changed while being archived and so the resulting archive does not contain the exact copy of the file set.
Status 2 ("Fatal error") still results in an exception.
|
||
|---|---|---|
| .. | ||
| backup_restore.rb | ||
| backup_store.rb | ||
| backuper.rb | ||
| local_backup_store.rb | ||
| restorer.rb | ||
| s3_backup_store.rb | ||