Re: Can a post-dle-backup script invalidate the backup?

Jean-Louis Martineau <[email protected]> Thu, 21 Dec 2017 15:27:36 -0500
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
On 21/12/17 02:33 PM, Chapman Flack wrote:
> Hi,
>
> If a backup application succeeds (exit 0), but then a post-dle-backup
> script runs and detects an error, does the backup get marked as failed?
>
> Example: the amlvmsnapshot script runs at pre-dle-backup and creates
> a snapshot, runs again at post-dle-backup and removes it. At the time
> of removal, it checks the size usage of the snapshot. If it reached
> 100% during the time the backup was running, it is bad news, and one
> must not trust the backup, but only the post-dle-backup script detects
> this, even if the backup application seemed to exit normally.
>
> -Chap
>

It's not possible, and it will be unreliable

The application save its state file (gnutar listdir) before it exit, and 
the following backup can be relative to that state file, failing a 
backup after that step could lead to unreliable following backup.

You want to run the post-script after the backup is done but before it 
save its state file. Interesting idea.

Do we have other case where a post-script could invalidate a backup?

Jean-Louis
This message is the property of CARBONITE, INC. and may contain confidential or privileged information.
If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone.  Instead, destroy it and notify me by reply e-mail