Skip to content

Commit 475a0f0

Browse files
committed
calls the confBackup function and a few fixes
Issue #28
1 parent 5462c5a commit 475a0f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

auto-gitlab-backup.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ archiveConfig() {
7777
echo ===== Archiving Configs =====
7878
if [ -w $localConfDir ]
7979
then
80-
tar -czf $localConfDir/gitlabConf-$dateStamp.tgz $localConfig $localsshkeys
80+
tar -czf "$localConfDir/gitlabConf-$dateStamp.tgz" $localConfig $localsshkeys
8181

8282
# remove files not within 3 days
83-
find $localConfDir -type f -mtime +3 -exec rm {} \;
83+
find $localConfDir -type f -mtime +3 -exec rm {} \;
8484

8585
else
8686
echo "Local configs aren't enabled or $localConfDir is not writable."
@@ -352,6 +352,7 @@ case $1 in
352352
# perform backup
353353
rakeBackup
354354
rakeCIBackup
355+
archiveConfig
355356
checkSize
356357
# go back to where we came from
357358
cd $PDIR

0 commit comments

Comments
 (0)