Author Topic: How TO Setup Remote Backup  (Read 43154 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: How TO Setup Remote Backup
« Reply #15 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.

Re: How TO Setup Remote Backup
« Reply #16 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
« Last Edit: December 10, 2019, 02:55:29 PM by ejsolutions »

Offline
*
Re: How TO Setup Remote Backup
« Reply #17 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
« Last Edit: January 04, 2022, 03:51:51 AM by weasam »

Offline
*
Re: How TO Setup Remote Backup
« Reply #18 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).

Offline
*
Re: How TO Setup Remote Backup
« Reply #19 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

Offline
**
Re: How TO Setup Remote Backup
« Reply #20 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

Offline
*
Re: How TO Setup Remote Backup
« Reply #21 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

Offline
**
Re: How TO Setup Remote Backup
« Reply #22 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

Offline
*
Re: How TO Setup Remote Backup
« Reply #23 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...)