HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=19)
-   -   How to exclude web from backup (http://www.howtoforge.com/forums/showthread.php?t=21774)

SupuS 27th March 2008 22:27

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


All times are GMT +2. The time now is 19:56.

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