diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-04-12 20:12:05 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-04-12 20:12:05 (GMT) |
commit | c8044aafe5572523ad0ba21a123cd4a6d677c5fa (patch) | |
tree | b6c52b6cb83ebc71b9baaedd0c377d1cc87fffde /abs/core/LinHES-system/lh_system_backup_job | |
parent | 73cfb83a5baecfe0529fda59ca57233d8843f783 (diff) | |
parent | f9636cc3fd81130d36809a8f83107a0e2a50ebce (diff) | |
download | linhes_pkgbuild-master.zip linhes_pkgbuild-master.tar.gz linhes_pkgbuild-master.tar.bz2 |
Diffstat (limited to 'abs/core/LinHES-system/lh_system_backup_job')
-rwxr-xr-x | abs/core/LinHES-system/lh_system_backup_job | 11 |
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 |