|
Lines 148-161
Link Here
|
| 148 |
# Run the backup. |
148 |
# Run the backup. |
| 149 |
# --warning=no-file-ignored set to suppress "socket ignored" messages. |
149 |
# --warning=no-file-ignored set to suppress "socket ignored" messages. |
| 150 |
# --warning=no-file-changed set to suppress "file changed as we read it" messages. |
150 |
# --warning=no-file-changed set to suppress "file changed as we read it" messages. |
| 151 |
tar cjf ${WHERE}/samba4_${n}.${WHEN}.tar.bz2 $relativedirname \ |
151 |
tar cjf \ |
| 152 |
--exclude=smbd.tmp \ |
152 |
--exclude=smbd.tmp \ |
| 153 |
--exclude=\*.ldb \ |
153 |
--exclude=\*.ldb \ |
| 154 |
--exclude=\*.tdb \ |
154 |
--exclude=\*.tdb \ |
| 155 |
--warning=no-file-ignored \ |
155 |
--warning=no-file-ignored \ |
| 156 |
--warning=no-file-changed \ |
156 |
--warning=no-file-changed \ |
| 157 |
--transform 's/.ldb.bak$/.ldb/' \ |
157 |
--transform 's/.ldb.bak$/.ldb/' \ |
| 158 |
--transform 's/.tdb.bak$/.tdb/' |
158 |
--transform 's/.tdb.bak$/.tdb/' \ |
|
|
159 |
${WHERE}/samba4_${n}.${WHEN}.tar.bz2 $relativedirname |
| 159 |
Status=$? |
160 |
Status=$? |
| 160 |
if [ $Status -ne 0 -a $Status -ne 1 ]; then |
161 |
if [ $Status -ne 0 -a $Status -ne 1 ]; then |
| 161 |
# Ignore 1 - private dir is always changing. |
162 |
# Ignore 1 - private dir is always changing. |