diff --git a/backup.sh b/backup.sh index 52d6f1b..359d2b3 100755 --- a/backup.sh +++ b/backup.sh @@ -5,6 +5,7 @@ backupDir=./backup mkdir -p ${backupDir} mkdir -p ${backupDir}/db +mkdir -p ${backupDir}/conf if [ -d "data/data" ]; then mkdir -p ${backupDir}/data fi @@ -27,6 +28,9 @@ repoFile="${backupDir}/repositories/${currentDate}.tbz2" tar -cj data/repositories -f ${repoFile} +# backup config files +tar -cj data/conf -f "${backupDir}/conf/${currentDate}.tbz2" + # backup gist repositories if existing if [ -d "data/gist" ]; then repoFile="${backupDir}/gist/${currentDate}.tbz2"