CyberPanel allows you to schedule and send backups to remote locations (Daily/Weekly).
For automatic remote backups to work there are two requirements.
You need a vps or dedicated server.
Your remote VPS and or dedicated server must have rsync installed on it.
If you have these two requirements met, you are ready to go. Please make sure you also have root access on the vps.
We first need to add a remote destination where backups will be sent.
Main > Backup > Add/Delete Destination
Just fill in the login details of your remote server and click
Add Destination, you can check connection with remote server by clicking
Once the destination is added, you can schedule either daily or weekly backups to this destination.
Main » Backup » Schedule Backup
Backup Destination that you just added above will appear here. You can select the destination from the drop down and set the backup frequency.
On remote server backups will be stored at
Backup logs are stored at
Hello. I am having a problem with setting up a remote backup SFTP destination. I am using the latest CyberPanel version 2.1 build 2. My backup destinations setup screen looks different than yours. When I Add Destination I get an “Operation Failed” message and no destination is created. Here is what my screen looks like. Can you help? EDIT: BTW, I have done SFTP from the command line with this same user, so the SSH key is already added to known_hosts:
I think I found the problem. It looks like CyberPanel is trying scp instead of sftp. I see this in the log:
args: ['/usr/bin/scp', '-o', 'StrictHostKeyChecking=no', '-P', '22', '/root/.ssh/cyberpanel.pub', 'firstname.lastname@example.org:~/.ssh/authorized_keys']
buffer (last 100 chars): b''
before (last 100 chars): b' \r\nThis service allows sftp connections only.\r\n'
And when I do the command on the command line I get this:
# /usr/bin/scp -o StrictHostKeyChecking=no -P 22 /root/.ssh/cyberpanel.pub user@172.XXX.YYY.ZZZ:~/.ssh/authorized_keys
This service allows sftp connections only.
Should I setup SCP at the backup server, or how can I use SFTP as CyberPanel specifies?
I have faced the same problem as you. Here is what I did to solve the problem:
OBS: My backup server is a Synology NAS DS118.
Enable homes directory for all users on Synology Control Panel
Enable SFTP and rsync on remote server (Synology DS118)
Add rsync account (username and password) on Synology DS118
Execute the following command at the VPS running CyberPanel:
ssh-keyscan -H -p [PORT] [REMOTE-SERVER-IP] >> ~/.ssh/known_hosts
- Add the backup destination on CyberPanel Control Panel as you would normally do, now that should work
PS.: You must enable rsync on remote backup server as stated on docs
Hi, i have 2 server with cyberpanel and i try to restore a backup from cyberpoanel1 to cyberpanel2 but when i put the ip + pass it give the user have not api access disabled so i go and enabled the api for this user but continue to see the same error
I think only admin user can be do that, thats right? how can i do it like a simple user??
i also use a Synology and i have the same error after i did what you told.
This is the log:
# Host 192.168.1.XX found: line 1
Original contents retained as /root/.ssh/known_hosts.old
args: ['/usr/bin/ssh', '-o', 'StrictHostKeyChecking=no', '-p', '22', 'XXXX@192.168.1.XXX', 'mkdir ~/.ssh || rm -f ~/.ssh/temp && rm -f ~/.ssh/authorized_temp && cp ~/.ssh/authorized_keys ~/.ssh/temp || chmod 700 ~/.ssh || chmod g-w ~']
buffer (last 100 chars): b' \r\n'
before (last 100 chars): b' \r\n'
0: re.compile(b'please try again.')
2: EOF [TIMEOUT setupSSHKeys]
It’s a bug in the cyberpanel?