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

Elyad Alaei elysamba4 at gmail.com
Wed Nov 12 04:54:12 MST 2014


Thank you. Can yo please give a link to the script you mentioned?!

On Wed, Nov 12, 2014 at 11:33 AM, Rowland Penny <rowlandpenny at googlemail.com
> wrote:

> On 12/11/14 11:18, Elyad Alaei wrote:
>
>> As much as I know, yes it is supposed to run while samba itself is
>> running,
>> but unfortunately I have the same issue even when I STOP the samba
>> process,
>> most of the time. As the age of server increases, this problem happens
>> more
>> frequently. When we installed samba, for first few months it happened
>> every
>> 2 or 3 days but now (after 10+ months) it did not took any backup in last
>> 2
>> months, EVEN WHEN SAMBA SERVICE IS STOPPED!
>>
>> On Wed, Nov 12, 2014 at 11:12 AM, Sven Schwedas <sven.schwedas at tao.at>
>> wrote:
>>
>>  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
>>> Systemadministrator
>>> TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz
>>> Mail/XMPP: sven.schwedas at tao.at | +43 (0)680 301 7167
>>> http://software.tao.at
>>>
>>>
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  https://lists.samba.org/mailman/options/samba
>>>
>>>  Hi, the problem is that the script that you are using, doesn't backup
> everything, there are *.tdb files that can and do change during the backup.
>
> I use Debian and found a later script, this still had problems, so I
> altered it again, this scripts seems to work, you are welcome to a copy if
> it will help.
>
> Rowland
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list