Author Topic: Executing an immediate backup?  (Read 3375 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Executing an immediate backup?
« 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.

Offline
*
Re: Executing an immediate backup?
« Reply #1 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
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Executing an immediate backup?
« Reply #2 on: April 24, 2014, 09:01:31 AM »
thanks for your help!

Offline
*
Re: Executing an immediate backup?
« Reply #3 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.

Offline
***
Re: Executing an immediate backup?
« Reply #4 on: February 05, 2015, 03:49:06 AM »
Those little things can be easy converted into custom modules.
8==D it's a function that try to compare 8 (int) against D (string) and not ALWAYS does return false.

Offline
**
Re: Executing an immediate backup?
« Reply #5 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

Offline
**
Re: Executing an immediate backup?
« Reply #6 on: January 02, 2018, 04:12:59 AM »
or if you want to just back up just on user

sh /scripts/user_backup [username]