Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th March 2008, 23:27
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 202
Thanks: 68
Thanked 14 Times in 12 Posts
 
Default How to exclude web from backup

Hi all

Today I have to exclude one web from ISPConfig daily backup. It is wery easy but maybe useful for someone. I don't know if this feature will be included in ISPConfig 3 but it will be very helpful

1. Find number of web needed for exclusion .. for example for web56 it is 56
2. Edit /ispconfig/scripts/shell/backup.php

change line:
Code:
$webs = $mod->db->queryAllRecords("SELECT * FROM isp_isp_web");
to:

Code:
$webs = $mod->db->queryAllRecords("SELECT * FROM isp_isp_web where doc_id != 56");
Thats all

If you need more than one web .. for example web56 and web74 .. solution is easy too:

Code:
$webs = $mod->db->queryAllRecords("SELECT * FROM isp_isp_web where doc_id != 56 and doc_id != 74");
Hope it helps somebody

SupuS
Reply With Quote
The Following User Says Thank You to SupuS For This Useful Post:
falko (28th March 2008)
Sponsored Links
Reply

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
Web backup problem lano General 6 7th August 2009 18:24
[SHELL Script] - Backup WEB & DATABASES vaio1 Tips/Tricks/Mods 0 5th September 2007 15:48
Problems with the virtual email system with postfix, courier,mysql Greg Parker HOWTO-Related Questions 3 3rd January 2007 18:59
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 11:07
get thousands of "Mailsize" mails from own server torusturtle Installation/Configuration 20 24th December 2006 15:51


All times are GMT +2. The time now is 08:33.


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