[Samba] Samba backup script retention question

lingpanda101 lingpanda101 at gmail.com
Mon Jun 5 19:43:05 UTC 2017


On 6/5/2017 9:40 AM, Rowland Penny via samba wrote:
> On Mon, 5 Jun 2017 08:45:07 -0400
> lingpanda101 via samba <samba at lists.samba.org> wrote:
>
>> Hello,
>>
>>       I'm using the 'samba_backup' script with the self compiled
>> version. I noticed the retention period not being applied to etc and
>> sysvol tar.bz2 files. Looking at the script it appears to only list
>> the following at the end
>>
>> 'find $WHERE -name "samba4_*bz2" -mtime +$DAYS -exec rm  {} \;'
>>
>> Can I also include the etc and sysvol tars in the command? Any reason
>> I shouldn't if I need to restore? Thanks.
>>
> There are that many versions of that script floating around, it
> is hard to keep up with them ;-)
>
> Provided the script backs up etc and sysvol to file called
> 'samba4_*bz2' in $WHERE, the retention period should be honoured, i.e.
> if the script creates 'samba4_etc.bz2' in $WHERE it should be removed
> when the max retention date is reached.
>
> Removed
>
I see the issue. The prefix 'samba4_' was missing from one of the lines 
containing $WHERE. Thanks.

  tar cjf ${WHERE}/samba4_${n}.${WHEN}.tar.bz2  $relativedirname 
--warning=no-file-ignored

-- 
--
James




More information about the samba mailing list