Browse Source

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}
pull/2118/head
Daniel Gibbs 6 years ago
parent
commit
f66dc437a5
  1. 2
      lgsm/functions/command_backup.sh

2
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

Loading…
Cancel
Save