Is there any way to execute a Cpanel weekly ,daily or monthly backup from command line . How to execute them ?
Thank you
Is there any way to execute a Cpanel weekly ,daily or monthly backup from command line . How to execute them ?
Thank you
█ Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
█ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.
The weekly and monthly backups are created based on the date of the previous run. Weekly and Monthly backups are simply copies of the current daily.
So, to run a new daily:
/scripts/cpbackup
If it complains about it already have run:
rm -Rfv /path/to/your/backupdir/cpbackup/daily
/scripts/cpbackup
To rerun the weekly:
rm -Rfv /path/to/your/backupdir/cpbackup/daily
rm -Rfv /path/to/your/backupdir/cpbackup/weekly
/scripts/cpbackup
etc.
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Thank you!
█ Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
█ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.
Actually, I think you can just run:Originally Posted by chirpy
/scripts/cpbackup --force
and it will ignore whether or not the daily backup has been written to today. I may be wrong, someone can double check me.
Looking at the script, it looks like it does use --force, don't know how long that's been thereHowever, a word of warnnig, the script appears to show that if you do that it will automtaically do the daily and weekly and monthly if they're configured. So, if you only want to rerun the daily, don't use --force.
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Hello,
will time i run /scripts/cpbackup or /scripts/cpbackup --force take to me one error
root@server [/]# /scripts/cpbackup
Backup is not done today as per whm backup settings at /scripts/cpbackup line 164.
line 164 is
localtime(time);
$backupthisday = 0;
foreach (@BACKUPDAYS) {
if($wday eq $_) {
$backupthisday = 1;
}
}
if (!$backupthisday) {
die "Backup is not done today as per whm backup settings";
}
}
my $basedir = $CONF{'BACKUPDIR'};
if ($CONF{'BACKUPTYPE'} eq "ftp") {
mkdir("/home/cpbackuptmp",0711);
chmod(0711,"/home/cpbackuptmp");
$basedir = "/home/cpbackuptmp";
if ($CONF{'BACKUPTYPE'} eq "ftp") {
$CONF{'BACKUPINC'} = "no";
$CONF{'BACKUPFILES'} = "no";
Pease help me
Are there any commands i can pass to the /scripts/cpbackup via a command line that will execute a backup for a single account?
This would be most beneficial. Moving a single account from a server to another, i don't want to wait for the backs to run at night, and don't want to run the entire backup cron for all accounts.
Anyone?
If you want to move one account use:
/scripts/pkgacct accountname
This creates a backup of the account at the top level of /home which you can copy over to another server into /home and restore using:
/scripts/restorepkg accountname
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Do you can help me?
will time i run /scripts/cpbackup or /scripts/cpbackup --force take to me one error
root@server [/]# /scripts/cpbackup
Backup is not done today as per whm backup settings at /scripts/cpbackup line 164.
line 164 is
localtime(time);
$backupthisday = 0;
foreach (@BACKUPDAYS) {
if($wday eq $_) {
$backupthisday = 1;
}
}
if (!$backupthisday) {
die "Backup is not done today as per whm backup settings";
}
}
my $basedir = $CONF{'BACKUPDIR'};
if ($CONF{'BACKUPTYPE'} eq "ftp") {
mkdir("/home/cpbackuptmp",0711);
chmod(0711,"/home/cpbackuptmp");
$basedir = "/home/cpbackuptmp";
if ($CONF{'BACKUPTYPE'} eq "ftp") {
$CONF{'BACKUPINC'} = "no";
$CONF{'BACKUPFILES'} = "no";
Hello Dear,
my problem is with auto take backup
i settiing in whm for backup
but can`t take
and take error
THanks