Current time: 11-23-2024, 09:07 AM Hello There, Guest! (LoginRegister)


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

Posts: 27
Joined: Dec 2008
Reputation: 0
Post: #20
RE: How can I keep my backups for x days?
(08-04-2009 08:40 PM)Kami Wrote:  
(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/.

Thanks, script updated, and tested, works fine Smile
08-04-2009 09:21 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? - miklosandras - 08-04-2009 09:21 PM

Forum Jump:


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