Skip to content

Commit 065d5ff

Browse files
author
Marius Burkard
committed
- when using pigz tar arguments for backup are in wrong order, fixes #5393
1 parent 3aa3932 commit 065d5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/500-backup.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function onRunJob() {
135135
//* Create a tar.gz backup as root user
136136
$web_backup_file = 'web'.$web_id.'_'.date('Y-m-d_H-i').'.tar.gz';
137137
if ($use_pigz) {
138-
$app->system->exec_safe('tar pcf - --directory ? . --exclude=./backup\*'.$backup_excludes.' | pigz > ?', $web_path, $web_backup_dir.'/'.$web_backup_file);
138+
$app->system->exec_safe('tar pcf - --exclude=./backup\*'.$backup_excludes.' --directory ? . | pigz > ?', $web_path, $web_backup_dir.'/'.$web_backup_file);
139139
$retval = $app->system->last_exec_retcode();
140140
} else {
141141
$app->system->exec_safe('tar pczf ? --exclude=./backup\*'.$backup_excludes.' --directory ? .', $web_backup_dir.'/'.$web_backup_file, $web_path);

0 commit comments

Comments
 (0)