Control Web Panel
WebPanel => Information => Topic started by: modder on March 21, 2014, 05:08:41 AM
-
How to i go about executing a backup on command without having to wait for the scheduled backups?
i ask becasue i havent notice the option #newbie to CWP.
-
this is done with cronjob daily, but you can do this manually:
/usr/bin/php -d max_execution_time=1000000 -q /etc/webpanel/panel/include/cron_backup.php
-
thanks for your help!
-
The new code to "force a backup" is this
/usr/local/cwp/php54/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
Take notice that the command Admin mentioned above says to pull from /etc/webpanel/
But I noticed that folder doesn't even exists on my server. So I peeked into this file (http://dl1.centos-webpanel.com/files/cwp-latest) and saw the command I just gave, which excutues the "Backup" script.
-
Those little things can be easy converted into custom modules.
-
Newer versions, "force update" command line is:
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
-
or if you want to just back up just on user
sh /scripts/user_backup [username]
-
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
-
I have successfully created a backup from the Customer Control Panel through the GUI. But i don't see any backup script to automate this via cron
I found a script but getting the following error while running manually as a root user.
# /bin/bash /usr/local/cwpsrv/htdocs/resources/scripts/user_backup linuxtechnews
tar: dnszones/linuxtechnews.com.db: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
I need a script to backup a specific domain in daily basics.
Any help on this
-
I need a script to backup a specific domain in daily basics.
Any help on this
Assuming you meant daily basis..
http://forum.centos-webpanel.com/index.php?topic=7930.0 <- scroll to my entry