We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5462c5a commit 475a0f0Copy full SHA for 475a0f0
auto-gitlab-backup.sh
@@ -77,10 +77,10 @@ archiveConfig() {
77
echo ===== Archiving Configs =====
78
if [ -w $localConfDir ]
79
then
80
- tar -czf $localConfDir/gitlabConf-$dateStamp.tgz $localConfig $localsshkeys
+ tar -czf "$localConfDir/gitlabConf-$dateStamp.tgz" $localConfig $localsshkeys
81
82
# remove files not within 3 days
83
- find $localConfDir -type f -mtime +3 -exec rm {} \;
+ find $localConfDir -type f -mtime +3 -exec rm {} \;
84
85
else
86
echo "Local configs aren't enabled or $localConfDir is not writable."
@@ -352,6 +352,7 @@ case $1 in
352
# perform backup
353
rakeBackup
354
rakeCIBackup
355
+ archiveConfig
356
checkSize
357
# go back to where we came from
358
cd $PDIR
0 commit comments