Current time: 02-17-2025, 12:02 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] How can I keep my backups for x days?
Author Message
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #4
RE: How can I keep my backups for x days?
great,

now we have to create a script which autoupdate the database

something like that:
PHP Code:
$sql "SELECT `domain` FROM `domain`";
$query=mysql_query($sql);
while(
$rs mysql_fetch_array($query))
{
$sql2 "INSERT INTO `domain_backup` (`id`, `domain_name`, `backup_days`) VALUES ("", '$rs['domain']', 8);";
$query2 mysql_query($sql2);


change "domain_add.php" and "domain_add.tpl" (i don´t know the real name of the files ) in reseller to automatic create the entry.

and

change

"domain_edit.php" and "domain_edit.tpl" to change the value of `backup_days`

and make a patch-file for the changes.

Then we have a great enhancement for ispCP

Greets

FISA4
03-21-2009 02:50 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How can I keep my backups for x days? - FISA4 - 03-21-2009 02:50 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)