Skip to content

Commit 3cd3009

Browse files
fix(backup): add -h flag to backup tar command so it follows symlinks (#4780)
1 parent c87f48f commit 3cd3009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/modules/command_backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn_backup_compression() {
126126
core_exit.sh
127127
fi
128128

129-
tar --use-compress-program=pigz -cf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "${excludedir}" --exclude "${lockdir}" --exclude "${tmpdir}" ./.
129+
tar --use-compress-program=pigz -hcf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "${excludedir}" --exclude "${lockdir}" --exclude "${tmpdir}" ./.
130130
exitcode=$?
131131
if [ "${exitcode}" -ne 0 ]; then
132132
fn_print_fail_eol

0 commit comments

Comments
 (0)