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 contains : /usr/bin/logger
Command checks : CMD_TAR contains : /bin/tar
Command checks : CMD_DIRNAME contains : /usr/bin/dirname
Command checks : CMD_CAT contains : /bin/cat
Command checks : CMD_GREP contains : /bin/grep
Command checks : CMD_ECHO contains : /bin/echo
Command checks : CMD_AWK contains : /usr/bin/awk
Command checks : CMD_SED contains : /bin/sed
Command checks : CMD_DATE contains : /bin/date
Command checks : CMD_FIND contains : /usr/bin/find
Command checks : CMD_RM contains : /bin/rm
Command checks : CMD_GETFACL contains : /usr/bin/getfacl
Command checks : CMD_TAIL contains : /usr/bin/tail
Command checks : CMD_CUT contains : /usr/bin/cut
Command checks : CMD_WC contains : /usr/bin/wc
Command checks : CMD_AWK contains : /usr/bin/awk
Command checks : CMD_SORT contains : /usr/bin/sort
Starting backup with ./backup_samba4
Message: checking for previous backups of this day : private
Message: setting date and counter : 2016-11-22-3 for private
Backup Status private: ok
Message: checking for previous backups of this day : sysvol
Message: setting date and counter : 2016-11-22-3 for sysvol
Backup Status sysvol: ok
Message: checking for previous backups of this day : acl-sys_vol
Message: setting date and counter : 2016-11-22-3 for acl-sys_vol
creating sysvol ACL file
Backup Status sysvol acl: ok
Message: checking for previous backups of this day : samba
Message: setting date and counter : 2016-11-22-0 for samba
/bin/tar: Cowardly refusing to create an empty archive
Try '/bin/tar --help' or '/bin/tar --usage' for more
information.
Error archiving:
/home/backups/dtdc03/samba-2016-11-22-0.tar.bz2
Status: 2
Apparently the final part of the script is failing but I am having
trouble determining why it will not archive the /etc?
The only option I changed (at the top of the script) is
"KEEPS_DAYS="yes"". Am I miss understanding the comments?
Suggestions?
--
_______________________________
Bob Wooden of Donelson Trophy
Hi Bob, It looks good, but KEEPS_DAYS="yes" does not work yet. Set it to no and try again. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Bob of Donelson > Trophy via samba > Verzonden: dinsdag 22 november 2016 13:13 > Aan: SAMBA MailList > Onderwerp: [Samba] 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 contains : /usr/bin/logger > Command checks : CMD_TAR contains : /bin/tar > Command checks : CMD_DIRNAME contains : /usr/bin/dirname > Command checks : CMD_CAT contains : /bin/cat > Command checks : CMD_GREP contains : /bin/grep > Command checks : CMD_ECHO contains : /bin/echo > Command checks : CMD_AWK contains : /usr/bin/awk > Command checks : CMD_SED contains : /bin/sed > Command checks : CMD_DATE contains : /bin/date > Command checks : CMD_FIND contains : /usr/bin/find > Command checks : CMD_RM contains : /bin/rm > Command checks : CMD_GETFACL contains : /usr/bin/getfacl > Command checks : CMD_TAIL contains : /usr/bin/tail > Command checks : CMD_CUT contains : /usr/bin/cut > Command checks : CMD_WC contains : /usr/bin/wc > Command checks : CMD_AWK contains : /usr/bin/awk > Command checks : CMD_SORT contains : /usr/bin/sort > Starting backup with ./backup_samba4 > Message: checking for previous backups of this day : private > Message: setting date and counter : 2016-11-22-3 for private > Backup Status private: ok > Message: checking for previous backups of this day : sysvol > Message: setting date and counter : 2016-11-22-3 for sysvol > Backup Status sysvol: ok > Message: checking for previous backups of this day : acl-sys_vol > Message: setting date and counter : 2016-11-22-3 for acl-sys_vol > creating sysvol ACL file > Backup Status sysvol acl: ok > Message: checking for previous backups of this day : samba > Message: setting date and counter : 2016-11-22-0 for samba > /bin/tar: Cowardly refusing to create an empty archive > Try '/bin/tar --help' or '/bin/tar --usage' for more information. > Error archiving: > /home/backups/dtdc03/samba-2016-11-22-0.tar.bz2 > Status: 2 > > Apparently the final part of the script is failing but I am having > trouble determining why it will not archive the /etc? > > The only option I changed (at the top of the script) is > "KEEPS_DAYS="yes"". Am I miss understanding the comments? > > Suggestions? > > -- > _______________________________ > > Bob Wooden of Donelson Trophy > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
22.11.2016 16:12, Bob of Donelson Trophy via samba пишет:> 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.Are this backup method 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? -- Mike Lykov, system administrator
On Tue, 22 Nov 2016 17:07:14 +0400 Mike Lykov via samba <samba at lists.samba.org> wrote:> 22.11.2016 16:12, Bob of Donelson Trophy via samba пишет: > > 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. > > Are this backup method 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
Yes, This script ( a modified version of the original samba_backup ) should only be run on the DC with FSMO roles.. DO NOT RESTORE if you have multiple DC's running and only one is failing. When do you use this script.. Situation critical. Like all dc's broke. Then install 1 samba restore this and you primary DC is up again.>From this point other dc can rejoin the domain.I use it for testing the DC and upgrades.. Restore on other DC, outside the production env. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Mike Lykov via > samba > Verzonden: dinsdag 22 november 2016 14:07 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] backup_samba4 script failing > > 22.11.2016 16:12, Bob of Donelson Trophy via samba ??????????: > > 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. > > Are this backup method 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? > > -- > Mike Lykov, system administrator > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Uhh.. i do use them. I use them to test upgrades. And yes, i do test way back.. And due to legal things i need to have these. ( at least for 6 months.. ) Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Rowland Penny via > samba > Verzonden: dinsdag 22 november 2016 14:23 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] backup_samba4 script failing > > On Tue, 22 Nov 2016 17:07:14 +0400 > Mike Lykov via samba <samba at lists.samba.org> wrote: > > > 22.11.2016 16:12, Bob of Donelson Trophy via samba ??????????: > > > 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. > > > > Are this backup method 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 > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba