[Samba] backup_samba4 script failing

L.P.H. van Belle belle at bazuin.nl
Tue Nov 22 12:20:43 UTC 2016


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




More information about the samba mailing list