search for: samba4_

Displaying 8 results from an estimated 8 matches for "samba4_".

Did you mean: samba4
2017 Jun 05
3
Samba backup script retention question
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. -- -- James
2015 Jan 11
1
Thoughts on samba backup script for DCs
Hello, possibly the author of the samba backup script will read this. I customized the script myself due to some things: 1. At the end the script looks for samba4_* files to rotate the backups. But only backups of the private folder get this prefix with the original script. sysvol and etc backups will remain. 2. The wiki of backup and restore advises to restore on the same version of samba the backup was made of. So it makes sense to get samba version into th...
2013 Apr 22
0
samba4 backup script
...$(find $relativedirname -name "*.ldb"); do if tdbbackup $ldb then : else echo "Error while backuping $ldb" exit 1 fi done find "$relativedirname" -type f -o -type d |grep -v '\.ldb$' |cpio --quiet -o --format=tar |bzip2 >"$WHERE/samba4_${n}.$WHEN.tar.bz2" if [ ! -f "$WHERE/samba4_${n}.$WHEN.tar.bz2" ] || [ $(stat -c "%s" "$WHERE/samba4_${n}.$WHEN.tar.bz2") -eq 0 ]; then echo "Error while archiving ${WHERE}/samba4_${n}.${WHEN}.tar.bz2" exit 1 fi find $relativedirname -name &...
2014 Jul 22
0
Samba4 Backup and Recovery Tutorial
...d my fstab to support xattrs so I believe this is applicable to me? If so can someone provide me with an example of this option from within the script? Is below correct and all that's needed? I have not altered my samba default installation directory. Thanks. tar *--xattrs* cjf ${WHERE}/samba4_${n}.${WHEN}.tar.bz2 $relativedirname --exclude=*.ldb >/dev/null 2>&1 if [ $? -ne 0 ]; then echo "Error while archiving ${WHERE}/samba4_${n}.${WHEN}.tar.bz2" exit 1 fi find $rel...
2014 Nov 12
1
backup script exit with error (probably because of tar warning)
Hi dear list members It's some time that we have issue regarding backup script of samba 4.0.10. It exits with error: "Error while archiving /home/a/samba-backup/samba4_private.121114.tar.bz2" After some troubleshooting, I noticed it is PROBABLY because of tar, issuing this warning with the exit code of 1: "tar: ./private: file changed as we read it" It is related to this line in the backup script: tar cjf ${WHERE}/samba4_${n}.${WHEN}.tar.bz2 $r...
2016 Dec 10
0
samba_backup script doesn't use tdbbackup for tdb files?
...gt; > if [ "$d" = "private" ]; then > find $relativedirname -name "*.ldb.bak" -exec rm {} \; > for ldb in `find $relativedirname -name "*.ldb"`; do > tdbbackup $ldb > done > tar cjf ${WHERE}/samba4_${n}.${WHEN}.tar.bz2 > $relativedirname --exclude=*.ldb >/dev/null 2>&1 > > Thank you, > If you read the code snippet carefully, you will see that tdbbackup backs up each .ldb file 'tdbbackup $ldb', this results in files named *.ldb.bak. The script then goes on to cr...
2016 Dec 10
0
samba_backup script doesn't use tdbbackup for tdb files?
..."$d" = "private" ]; then >> find $relativedirname -name "*.ldb.bak" -exec rm {} \; >> for ldb in `find $relativedirname -name "*.ldb"`; do >> tdbbackup $ldb >> done >> tar cjf ${WHERE}/samba4_${n}.${WHEN}.tar.bz2 >> $relativedirname --exclude=*.ldb >/dev/null 2>&1 >> >> Thank you, >> > > If you read the code snippet carefully, you will see that tdbbackup > backs up each .ldb file 'tdbbackup $ldb', this results in files named > *.ldb.b...
2016 Dec 10
0
samba_backup script doesn't use tdbbackup for tdb files?
...ivate" ]; then > >> find $relativedirname -name "*.ldb.bak" -exec rm {} \; > >> for ldb in `find $relativedirname -name "*.ldb"`; do > >> tdbbackup $ldb > >> done > >> tar cjf ${WHERE}/samba4_${n}.${WHEN}.tar.bz2 > >> $relativedirname --exclude=*.ldb >/dev/null 2>&1 > >> > >> Thank you, > >> > > > > If you read the code snippet carefully, you will see that tdbbackup > > backs up each .ldb file 'tdbbackup $ldb', this...