I've noticed that the automatic backup functionality doesn't backup .htaccess files. The man page of zip explains that I need to add ".* *" instead of just "*" as a parameter to include them. EDIT: them = files starting with a dot
Looking at /root/ispconfig/scripts/shell/backup.php tells me that you are using just the "*" so I thought that changing it to the above would be the way to go. But then I looked at the webN_user.zip and saw files starting with a dot in that zip such as .antivirus.rc. On the other hand the file .no_delete is not included. Now I am confused.
Why is .antivirus.rc included but .htaccess isn't?
I assume you either forgot about .htaccess or there is a good reason to not include .htaccess in the backup. What reason would that be?
If I want to include .htaccess in the backup, changing
Quote:
|
exec("cd $web_pfad; $zip -r $tmp_dir/web".$web_id."_web.zip *");
|
to
Quote:
|
exec("cd $web_pfad; $zip -r $tmp_dir/web".$web_id."_web.zip .* *");
|
would do the trick, wouldn't it? Running "zip test.zip .* *" works for me.
Thank you very much.
Recent comments
19 hours 23 min ago
19 hours 29 min ago
1 day 27 min ago
1 day 7 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 20 hours ago
2 days 47 sec ago
2 days 1 hour ago