Skip to content

Commit c50254a

Browse files
committed
Fix positions for tar fileexcludes, thanks to @FalzoMAD
1 parent ae3b875 commit c50254a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-backup-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
228228
set +f
229229

230230
# Backup files
231-
tar -cpf- * ${fargs[@]} |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
231+
tar ${fargs[@]} -cpf- * | gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
232232
done
233233

234234
# Print total

0 commit comments

Comments
 (0)