Control Web Panel

WebPanel => How to => Topic started by: lolite on March 21, 2016, 03:03:14 AM

Title: How TO Setup Remote Backup
Post by: lolite on March 21, 2016, 03:03:14 AM
hallo if anyone could help me to give you the steps in the installation of remote backup cpw? I need your help thanks

(http://i.imgur.com/zNbYNim.png)
Title: Re: How TO Setup Remote Backup
Post by: Sandeep on March 21, 2016, 03:22:15 PM
you need a spare/backup server to do remote backup
Title: Re: How TO Setup Remote Backup
Post by: lolite on March 23, 2016, 01:26:44 AM
server backup ready. is there a tutorial step by step? because I've tried to connect to it with the backup server but failed
Title: Re: How TO Setup Remote Backup
Post by: Sandeep on March 23, 2016, 04:51:56 AM
access key is necessary, double check that access key matches your backup server access key

you need :
backup server ip
backup server ssh port
Username
Access key
Title: Re: How TO Setup Remote Backup
Post by: lolite on March 28, 2016, 01:36:49 AM
I have done the setup and I get a back problem, why do daily backups though I already ticking for daily backups. and why there is no file of CWP in my backup server? how can I check the log backup failure or success?

(http://i.imgur.com/OwhXY5g.png)
Title: Re: How TO Setup Remote Backup
Post by: Sandeep on March 28, 2016, 09:42:39 AM
did you wait for 24 hrs ? as daily backup runs once in 24 hrs
Title: Re: How TO Setup Remote Backup
Post by: lolite on March 30, 2016, 02:22:30 AM
I've been waiting even now already 3 days but no file or the backup db :(
Title: Re: How TO Setup Remote Backup
Post by: Sandeep on March 30, 2016, 05:55:45 AM
contact support for more investigations
Title: Re: How TO Setup Remote Backup
Post by: Administrator on March 30, 2016, 01:22:36 PM
you can test it manually
Code: [Select]
/usr/local/cwp/php54/bin/php -d max_execution_time=10000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
Title: Re: How TO Setup Remote Backup
Post by: centosuser on July 22, 2016, 05:13:33 PM
How to run backup of cpanel to cwp.
Please tell steps.
I am using port 22000,
Title: Re: How TO Setup Remote Backup
Post by: Bausch on July 23, 2016, 04:07:33 AM
How to run backup of cpanel to cwp.
Please tell steps.
I am using port 22000,

Steps are detailed in this wiki page.
http://wiki.centos-webpanel.com/how-to-migrate-account-from-cpanel
Title: Re: How TO Setup Remote Backup
Post by: drseva on September 26, 2019, 09:59:25 PM
does anyone have a recommendation for backup server
Title: Re: How TO Setup Remote Backup
Post by: arabgenius on October 06, 2019, 09:16:12 AM
hello
use ncftp for remote backup
Title: Re: How TO Setup Remote Backup
Post by: pericles on December 09, 2019, 09:29:16 AM
I would like to enable remote backup on my VPS as well. But I am still in the process of finding a backup server that is not too expensive to put all my backups.

Any recommendations?

Thanks,
Title: Re: How TO Setup Remote Backup
Post by: ejsolutions on December 09, 2019, 10:26:48 AM
Lowendspirit.com is the place to find server deals.
Lowendbox.com (USA) is excellent value for a backup box.
Inception for UK storage.
Title: Re: How TO Setup Remote Backup
Post by: leobaldoneto on December 09, 2019, 08:11:58 PM
I would like to enable remote backup on my VPS as well. But I am still in the process of finding a backup server that is not too expensive to put all my backups.

Any recommendations?

Thanks,

I created an free f1 micro instance in Gcloud. It has 30GB HDD free storage.
Title: Re: How TO Setup Remote Backup
Post by: ejsolutions on December 10, 2019, 02:53:45 PM
Lowendspirit.com is the place to find server deals.
lowendbox.com (USA) is excellent value for a backup box.
Inception for UK storage.
The link should be letbox.com
Title: Re: How TO Setup Remote Backup
Post by: weasam on January 04, 2022, 03:32:59 AM
[root@mi ~]# curl http://dl1.centos-webpanel.com/files/s_scripts/sinfo.sh|sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   899  100   899    0     0   2110      0 --:--:-- --:--:-- --:--:--  2105
===============================================
Kernel:
Linux mi.mydomain.com 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UT                                        C 2021 x86_64 x86_64 x86_64 GNU/Linux

CPU info:
model name      : QEMU Virtual CPU version (cpu64-rhel6)

Release:
CentOS Stream release 8

Arch:
x86_64

Virtualization Type:
kvm

Memory:
              total        used        free      shared  buff/cache   available
Mem:            984         332          96          34         556         390
Swap:          1023         686         337

MySQL info:
mysql  Ver 15.1 Distrib 10.4.22-MariaDB, for Linux (x86_64) using readline 5.1

Disk Info:
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        478M     0  478M   0% /dev
tmpfs           493M     0  493M   0% /dev/shm
tmpfs           493M   52M  441M  11% /run
tmpfs           493M     0  493M   0% /sys/fs/cgroup
/dev/sda2        22G   15G  5.3G  75% /
/dev/sda1       488M  266M  197M  58% /boot
tmpfs            99M     0   99M   0% /run/user/0


#
# /etc/fstab
# Created by anaconda on Wed Sep 25 00:18:04 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/sda2 / ext3 rw,noatime,discard,quota,usrquota,grpquota 0 0
UUID=ac496e51-ac1e-4906-b84c-534fd832c9ef /boot                   ext3    defaul                                        ts,discard,noatime        1 2
# /swap  none  swap  sw 0  0
/swap   swap    swap    sw  0   0
# /swapfile   swap    swap    sw  0   0

Apache PHP info:
PHP 5.6.37 (cli) (built: Jul 20 2018 06:10:33)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by                                         ionCube Ltd.

Apache start script check:
grep: /etc/init.d/httpd: No such file or directory

CWP Admin check:
/usr/local/cwpsrv/htdocs/admin

CWP version:
0.9.8.1116
===============================================
[root@mi ~]#

Remote server: fresh Ubuntu 18

At my CWP-remote-backup
 Ok Checking if config file exists /usr/local/cwp/.conf/remote_backup.conf.
 Ok Checking if key file exists /root/.ssh/backup/id_rsa.pub
 OK Checking if backup folder /backup exists and creating it if not exists.
 OK Checking if remote connection is tested and activated.

My remote VPS only have backup directories but empty [already pass 5 days]
The folder has in my remote VPS
/root/cwp_remote/daily>users
---------------------weekly >users
---------------------MySQL >users
but don't have any files within these
Title: Re: How TO Setup Remote Backup
Post by: dualarrow on February 12, 2022, 02:25:53 PM
Same problem here. I have all the remote backup settings in the green, I have logged in to my CWP using ssh and checked I can ssh into my backup server without being asked for credentials, and have waited for well over 24 hours. I have both "Enable Backup" and "Remote Backup" checked.

My /backup folder on CWP has been populated and looks good. My backup server has no added folders and no sign of any backups.

in the "Crontab for root users" list under "Server Settings/Crontab for root" I see the following entry

Code: [Select]
15 0 * * * /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=100000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php

which looks like its meant to run it at 15 mins past midnight but assuming it does run, I see no evidence of backup files on the remote machine.

As a stop gap until I can get this working, I have setup a cron job that executes the following

Code: [Select]
/usr/bin/rsync --no-i-r -e 'ssh -p 2223' --archive /backup/* user@my.domain.com:/home/bkup
every 24 hours at 2am so there should be more than enough time for it to complete. I'll setup another task to archive that data (it's a NAS I have at home).
Title: Re: How TO Setup Remote Backup
Post by: weasam on February 17, 2022, 03:05:12 AM
reply @dualarrow

In my case I have a cheap VPS has 20Gb supposed to be my backup server for CWP, in CWP remote backup settings all are green,
then i check my backup VPS has a folder name "cwp_remote" under /root,,

has "daily""weekly""monthly""mysql", and each folder has users within it, but doesn't have any backup files.

Have you fixed this case?
Once it fixed I will change the remote server to my Home Linux as well
Title: Re: How TO Setup Remote Backup
Post by: Painkiller88 on February 19, 2022, 01:45:42 PM
Is there any difference in using "Backup Configuration" or "NEW Backup (beta)"

As i can choose remote backups from the new menu also.

So shouldn't the old Backup be removed from the menu or is there a difference in what will be backed up?

thanks
Title: Re: How TO Setup Remote Backup
Post by: weasam on February 23, 2022, 05:31:18 AM
Is there any difference in using "Backup Configuration" or "NEW Backup (beta)"

As i can choose remote backups from the new menu also.

So shouldn't the old Backup be removed from the menu or is there a difference in what will be backed up?

thanks
"NEW Backup (beta)" is working better, Right now I'm testing this, I could use this new backup to save on my local server
Title: Re: How TO Setup Remote Backup
Post by: Painkiller88 on February 23, 2022, 11:14:50 PM
Is there any difference in using "Backup Configuration" or "NEW Backup (beta)"

As i can choose remote backups from the new menu also.

So shouldn't the old Backup be removed from the menu or is there a difference in what will be backed up?

thanks
"NEW Backup (beta)" is working better, Right now I'm testing this, I could use this new backup to save on my local server

You can also use it to save your backup to a UNC path, i save my backups to a NAS. I was asking because since about 2 years i am using CWP now this is still called "New Backup" and it is still beta, so for me it is also an old and i wonder why the "old" backup is still in there.

i thought the old one is backing up something more like CWP configs or something else but if they do the same, i don't understand why it is a beta for 2 years now
Title: Re: How TO Setup Remote Backup
Post by: weasam on February 24, 2022, 02:17:43 AM
Painkiler88 you are right , I'm the same thinking of you, while the new backup(beta) is use SSH password which more easily to use compare the old one need download the key, New backup(beta)like to be un-native to CWP for years I guess it's going to be a lot works to merge in the existing Functions( restore backup...)