(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