Author Topic: Executing an immediate backup?  (Read 30567 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.
Trying to help people :)
Chords and Lyrics

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) which returns True or False depending on the asker.

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]


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

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

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