Преглед изворни кода

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 година
родитељ
комит
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