Skip to content

Commit bbbc5a7

Browse files
committed
Fixed: FS#1928 - web backup to mounted ftp drive - temporary file problem.
1 parent 5a43e7a commit bbbc5a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/cron_daily.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ function setConfigVar( $filename, $varName, $varValue ) {
525525
if($backup_mode == 'userzip') {
526526
//* Create a .zip backup as web user and include also files owned by apache / nginx user
527527
$web_backup_file = 'web'.$web_id.'_'.date('Y-m-d_H-i').'.zip';
528-
exec('cd '.escapeshellarg($web_path).' && sudo -u '.escapeshellarg($web_user).' find . -group '.escapeshellarg($web_group).' -print 2> /dev/null | zip --exclude=backup\* --symlinks '.escapeshellarg($web_backup_dir.'/'.$web_backup_file).' -@');
529-
exec('cd '.escapeshellarg($web_path).' && sudo -u '.escapeshellarg($web_user).' find . -user '.escapeshellarg($http_server_user).' -print 2> /dev/null | zip --exclude=backup\* --update --symlinks '.escapeshellarg($web_backup_dir.'/'.$web_backup_file).' -@');
528+
exec('cd '.escapeshellarg($web_path).' && sudo -u '.escapeshellarg($web_user).' find . -group '.escapeshellarg($web_group).' -print 2> /dev/null | zip -b /tmp --exclude=backup\* --symlinks '.escapeshellarg($web_backup_dir.'/'.$web_backup_file).' -@');
529+
exec('cd '.escapeshellarg($web_path).' && sudo -u '.escapeshellarg($web_user).' find . -user '.escapeshellarg($http_server_user).' -print 2> /dev/null | zip -b /tmp --exclude=backup\* --update --symlinks '.escapeshellarg($web_backup_dir.'/'.$web_backup_file).' -@');
530530
} else {
531531
//* Create a tar.gz backup as root user
532532
$web_backup_file = 'web'.$web_id.'_'.date('Y-m-d_H-i').'.tar.gz';

0 commit comments

Comments
 (0)