summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/lh_system_backup_job
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-04-12 20:12:05 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-04-12 20:12:05 (GMT)
commitc8044aafe5572523ad0ba21a123cd4a6d677c5fa (patch)
treeb6c52b6cb83ebc71b9baaedd0c377d1cc87fffde /abs/core/LinHES-system/lh_system_backup_job
parent73cfb83a5baecfe0529fda59ca57233d8843f783 (diff)
parentf9636cc3fd81130d36809a8f83107a0e2a50ebce (diff)
downloadlinhes_pkgbuild-master.zip
linhes_pkgbuild-master.tar.gz
linhes_pkgbuild-master.tar.bz2
Merge branch 'testing'HEADmaster
Diffstat (limited to 'abs/core/LinHES-system/lh_system_backup_job')
-rwxr-xr-xabs/core/LinHES-system/lh_system_backup_job11
1 files changed, 10 insertions, 1 deletions
diff --git a/abs/core/LinHES-system/lh_system_backup_job b/abs/core/LinHES-system/lh_system_backup_job
index 8539ff2..e248e1a 100755
--- a/abs/core/LinHES-system/lh_system_backup_job
+++ b/abs/core/LinHES-system/lh_system_backup_job
@@ -117,7 +117,16 @@ function backup(){
done
echo "Backup home dirs"
- tar -zcf $BACKUPDIR/$DATE/home_dir.tar.gz -X $MYTHHOME/backup_config/backup_exclude.txt $MYTHHOME /home/vncsvc /home/xymon
+ HOMEDIRS=""
+ if [ -d /home/vncsvc ]
+ then
+ HOMEDIRS="/home/vncsvc"
+ fi
+ if [ -d /home/xymon ]
+ then
+ HOMEDIRS="$HOMEDIRS /home/xymon"
+ fi
+ tar -zcf $BACKUPDIR/$DATE/home_dir.tar.gz -X $MYTHHOME/backup_config/backup_exclude.txt $MYTHHOME $HOMEDIRS
if [ -f $MYTHHOME/backup_config/backup_include.txt ]
then