Control Web Panel

WebPanel => Information => Topic started by: modder on March 21, 2014, 05:08:41 AM

Title: Executing an immediate backup?
Post 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.
Title: Re: Executing an immediate backup?
Post by: Administrator on March 31, 2014, 10:19:25 PM
this is done with cronjob daily, but you can do this manually:
Code: [Select]
/usr/bin/php -d max_execution_time=1000000 -q /etc/webpanel/panel/include/cron_backup.php
Title: Re: Executing an immediate backup?
Post by: modder on April 24, 2014, 09:01:31 AM
thanks for your help!
Title: Re: Executing an immediate backup?
Post by: MyBuddyBen on February 04, 2015, 09:10:55 PM
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.
Title: Re: Executing an immediate backup?
Post by: erm3nda on February 05, 2015, 03:49:06 AM
Those little things can be easy converted into custom modules.
Title: Re: Executing an immediate backup?
Post by: pedromidiasf on January 02, 2018, 01:02:32 AM
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
Title: Re: Executing an immediate backup?
Post by: Darkroom on January 02, 2018, 04:12:59 AM
or if you want to just back up just on user

sh /scripts/user_backup [username]

Title: Re: Executing an immediate backup?
Post by: crow31 on October 30, 2019, 06:08:22 AM
Code: [Select]
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
Title: Re: Executing an immediate backup?
Post by: magi on January 04, 2020, 07:25:07 PM
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
Title: Re: Executing an immediate backup?
Post by: ejsolutions on January 04, 2020, 08:43:16 PM
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