Skip to content

Commit

Permalink
fix(backup): include hidden directories in backup or rootdir #2087
Browse files Browse the repository at this point in the history
*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}
  • Loading branch information
dgibbs64 committed Dec 15, 2018
1 parent 58e88be commit f66dc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsm/functions/command_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f66dc43

Please sign in to comment.