Displaying 5 results from an estimated 5 matches for "keep_days".
2018 Apr 13
1
backup-script/backup_samba4
Hi!
i am testing Louis van Belle backup script. it works quite well. Thank
you for sharing this!
https://github.com/thctlo/samba4/blob/master/backup-script/backup_samba4
but i think there is an error in the KEEP_DAYS code as the string
'\-$KEEP_DAY1\-|\-$KEEP_DAY2-'
is not interpolated so the egrep does exclude anything from rm call. So
no files older than $DAYS are kept...
# Remove any files over $DAYS days old from backup dir, keep the
$KEEP_DAY1 and $KEEP_DAY2 of the month.
if [ ${KEEP_DAYS} = &q...
2017 Dec 19
3
notice backup script update!
...er/backup-script
I've updated it, due to bug https://bugzilla.samba.org/show_bug.cgi?id=13088 netlogon_creds_cli.tdb will be excluded from the backup.
Due to this the script exits and does not backup anything since netlogon_creds_cli.tdb is the first it wanted to backup. ( in my case ).
Keep_days is working now also.
Tip here is, set you DAYS high, i've set a default of 60 days now and if KEEP_DAYS="yes" then all files older then 60 days will be removed from the backup, except dates with -01- -15- .
Update you backup script or please do check if its running as it should....
2016 Nov 22
2
backup_samba4 script failing
...useful only for one-DC domain?
> If AD domain runs two or more DC, restore from this backup one of DCs
> break replication and something more?
>
It has its uses in a multi DC domain, you could get replication
problems where no DC has a full and correct AD.
The Problem I have with 'KEEP_DAYS' in Louis's script is not that it
doesn't work, but why would anybody want to keep backups for certain
days. The AD database changes frequently, so any backup for 15 days
ago could be well out of date.
Rowland
2016 Nov 22
5
backup_samba4 script failing
I am testing the backup script found at
https://github.com/thctlo/samba4/tree/master/backup-script on Ubuntu
16.04.1LTS with Samba 4.5.0 (from source) running.
When I run:
root at dtdc03:/usr/sbin# ./backup_samba4 --debug
Command checks : CMD_SAMBA contains : /usr/local/samba/sbin//samba
Command checks : CMD_TDBBACKUP contains :
/usr/local/samba/bin//tdbbackup
Command checks : CMD_LOGGER
2016 Nov 22
0
backup_samba4 script failing
...in?
>> If AD domain runs two or more DC, restore from this backup one of DCs
>> break replication and something more?
>>
> It has its uses in a multi DC domain, you could get replication
> problems where no DC has a full and correct AD.
>
> The Problem I have with 'KEEP_DAYS' in Louis's script is not that it
> doesn't work, but why would anybody want to keep backups for certain
> days. The AD database changes frequently, so any backup for 15 days
> ago could be well out of date.
>
>
In case they unwittingly backed up a corrupt DC?
--
Mike H...