chrootid / rbackupsh

RBackup SH is a very suitable bash script for servers that do not have enough free space to store backup data in their local disk space.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RBackup SH

RBackup SH is a very suitable bash script for servers that do not have enough free space to store backup data in their local disk space.

  1. Create cPanel/WHM Additional Destination Backup
    WHM -> Backup -> Backup Configuration -> Additional Destinations -> Destination Type: SFTP -> Create New Destination

Destination Name: your_backup_destination_name
Backup Directory: your_backup_default_dir
Remote Host: your_remote_backup_server_ip_host
Port: your_remote_port
Remote Account Username: your_account_username
Authentication Type: Key Authentication / Password Authentication
Password: your_password_if_password_auth
Private Key: your_ssh_private_key_full_path_file_if_keyauth
Save and Validate Destination
Enable it

For Example:
Destination Name : server_remote_backup_01
Backup Type : SFTP
Remote Host : rbackup.chrootid.com
Backup Directory : leave blank or relative path
Port : 6789
Remote Account Username : vm1
Authentication Type : Key Authentication
Private Key : /root/.ssh/vm1_to_rbackup_id_rsa

  1. Download the script
# wget -qc rbackupsh.chrootid.com -O /usr/bin/rbackupsh
# chmod 700 /usr/bin/rbackupsh
  1. Run
# /usr/bin/rbackupsh 
  1. Command Output
-----------------------------------------------------------------------
   Script   : RBackup - Split Homedir
   By       : Adit Thaufan <adit@chrootid.com>
   Docs     : https://github.com/chrootid/rbackupsh
   Download : wget -qc rbackupsh.chrootid.com -O /usr/bin/rbackupsh
-----------------------------------------------------------------------
 Destination Name               : server_remote_backup_01
 Backup Type                    : SFTP
 Remote Host                    : rbackup.chrootid.com
 Backup Directory               : ~
 Port                           : 6789
 Remote Account Username        : vm1
 Authentication Type            : Key Authentication
 Private Key                    : /root/.ssh/vm1_to_rbackup_id_rsa
 Validate Destination           : Succeeded
 SSH Connection Test            : Successful
-----------------------------------------------------------------------
 Local Backup Status            : Disabled
 Remote Backup Status           : Enabled
 Total cPanel Account           : 1 Account
 cPmove Backup                  : ✔ Done
 cPhomedir Backup               : ✔ Done
 cPsystem Backup                : ✔ Done
 Total cPmove Backup            : 1 Complted, 0 Failed
 Total cPhomedir Backup         : 1 Complted, 0 Failed
 Total Backup Size              : 479M  /remotebackup/vm1/2022-02-16
-----------------------------------------------------------------------
 Total Process Time             : 12 Seconds
 Date Time                      : 2022-02-16 07:26:14
-----------------------------------------------------------------------

About

RBackup SH is a very suitable bash script for servers that do not have enough free space to store backup data in their local disk space.

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%