Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
cb795fd2
Commit
cb795fd2
authored
Nov 21, 2013
by
Falko Timme
Browse files
- Forgot to add backup exclude directories to first zip task.
parent
14fe6d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/cron_daily.php
View file @
cb795fd2
...
...
@@ -1142,7 +1142,7 @@ if($backup_dir != '') {
if
(
$backup_mode
==
'userzip'
)
{
//* Create a .zip backup as web user and include also files owned by apache / nginx user
$web_backup_file
=
'web'
.
$web_id
.
'_'
.
date
(
'Y-m-d_H-i'
)
.
'.zip'
;
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
);
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
);
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
);
}
else
{
//* Create a tar.gz backup as root user
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment