Every night a script saves the application from ~/backup-lab/live/app into the archive /srv/backup-lab/app.tar. Last night it finished without errors.
Before updating the application, check the copy: unpack the archive into the empty restore directory and compare it with the working copy.
Unpack the nightly archive
In ~/backup-lab, unpack the nightly archive into restore, then list both directories: the working copy live/app and the restored restore/app.
Where did .release get lost?
-
ls -l live/app/.releaseshows 1 September: the file is older than last night's archive. -
The same
ls -ashowed.releaseinlive/app: the-aoption lists hidden names too. -
tar created the directories and the private
secret.envfor you without complaint, and a hidden name differs only by the leading dot. The archive listing later shows that.releaseis not in the archive at all.
.release is not in the archive itself: it was lost when the archive was built.