Просмотр исходного кода

fix(backup): include hidden directories in backup or rootdir #2087

*hidden directories are now included in the backup. 

note: this only includes hidden files in ${rootdir}. Files in ${HOME} are not backed up unless ${rootdir} is the same as ${HOME}
Daniel Gibbs 7 лет назад
Родитель
Сommit
f66dc437a5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lgsm/functions/command_backup.sh

+ 1 - 1
lgsm/functions/command_backup.sh

@@ -121,7 +121,7 @@ fn_backup_compression(){
 		core_exit.sh
 	fi
 
-	tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "${excludedir}" --exclude "${tmpdir}/.backup.lock" ./*
+	tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "${excludedir}" --exclude "${tmpdir}/.backup.lock" ./.
 	local exitcode=$?
 	if [ ${exitcode} -ne 0 ]; then
 		fn_print_fail_eol