Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 22nd March 2006, 16:58
tron tron is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default No .htaccess in automatic backup?

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.

Last edited by tron; 22nd March 2006 at 17:06.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eGroupWare Install crudolphy General 28 5th June 2007 20:09
How do I enable automatic backup? drsintoma Installation/Configuration 36 12th September 2006 17:17
Backup question Piccent Installation/Configuration 10 13th March 2006 01:12
email + backup blackflag Installation/Configuration 3 7th March 2006 12:38
How to disable automatic backup? ddelbia General 4 22nd January 2006 17:40


All times are GMT +2. The time now is 00:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.