[Samba] backup script exit with error (probably because of tar warning)

Sven Schwedas sven.schwedas at tao.at
Wed Nov 12 04:12:23 MST 2014

On 2014-11-12 11:53, Elyad Alaei wrote:
> I'm afraid, changing the exit condition, inorder to exclude exit code with
> 1, would result in unsafe backups?

The exit code is documented as:

> 1  Some  files  differ.  If tar was invoked with the
>    --compare (--diff, -d) command line option,  this
>    means  that some files in the archive differ from
>    their disk counterparts.  If tar was given one of
>    the  --create, --append or --update options, 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.

So yes, the cause are changes to the databases while you archive them.

I'm not sure whether the script is supposed to be run while samba itself
is running, tar cannot backup open tdb/ldb files.

Mit freundlichen Grüßen, / Best Regards,
Sven Schwedas
TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz
Mail/XMPP: sven.schwedas at tao.at | +43 (0)680 301 7167

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20141112/a6886ea4/attachment.pgp>

More information about the samba mailing list