Current time: 05-19-2024, 10:48 PM Hello There, Guest! (LoginRegister)


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


Posts: 4
Joined: Jul 2009
Reputation: 0
Post: #19
RE: How can I keep my backups for x days?
(08-04-2009 08:14 PM)miklosandras Wrote:  
(08-04-2009 07:34 PM)ephigenie Wrote:  i can help with the patch ...

For me just one important feature is missing :
User should be able to select which backup to use to restore their data.
(and of course in combination with the splitting of sql / file data)

Thanks for your help.

I know the solution for restore what was in

/var/www/ispcp/engine/ispcp-dmn-mngr

but, I am not good at perl...

There is a one small bug in your script (same as in my first version).

Code:
exec("ls -lrt --color=never /var/www/virtual/".$domain_name."/archive_backups/ | grep '$delete_day1' | awk '{print $8}' | xargs rm -f");

If you don't change the working directory to /var/www/virtual/".$domain_name."/archive_backups/ you need to supply the full path to the rm command, else script will try to delete these files in the current working directory instead of /var/www/virtual/".$domain_name."/archive_backups/.
08-04-2009 08:40 PM
Visit this user's website 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? - Kami - 08-04-2009 08:40 PM

Forum Jump:


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