Skip to content

Commit cb795fd

Browse files
committed
- Forgot to add backup exclude directories to first zip task.
1 parent 14fe6d4 commit cb795fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/cron_daily.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ function send_notification_email($template, $placeholders, $recipients) {
11421142
if($backup_mode == 'userzip') {
11431143
//* Create a .zip backup as web user and include also files owned by apache / nginx user
11441144
$web_backup_file = 'web'.$web_id.'_'.date('Y-m-d_H-i').'.zip';
1145-
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).' -@', $tmp_output, $retval);
1145+
exec('cd '.escapeshellarg($web_path).' && sudo -u '.escapeshellarg($web_user).' find . -group '.escapeshellarg($web_group).' -print 2> /dev/null | zip -b /tmp --exclude=backup\*'.$backup_excludes.' --symlinks '.escapeshellarg($web_backup_dir.'/'.$web_backup_file).' -@', $tmp_output, $retval);
11461146
if($retval == 0) 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\*'.$backup_excludes.' --update --symlinks '.escapeshellarg($web_backup_dir.'/'.$web_backup_file).' -@', $tmp_output, $retval);
11471147
} else {
11481148
//* Create a tar.gz backup as root user

0 commit comments

Comments
 (0)