New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Executing an immediate backup?

Started by modder, March 21, 2014, 05:08:41 AM

Previous topic - Next topic

modder

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.

Administrator

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

modder


MyBuddyBen

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

erm3nda

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.

pedromidiasf

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

Darkroom

or if you want to just back up just on user

sh /scripts/user_backup [username]


crow31

/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

magi

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

ejsolutions

Quote from: magi on January 04, 2020, 07:25:07 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