VestaCP remote backup Error code: 1, SFTP error and solution
Posted: Sat Nov 17, 2018 6:17 pm
I had this VestaCP remote backup Error code: 1, when trying to set SFTP for remote backup.
I found my solution and wanted to share it. It might be useful for someone.
I am using Centos 7. There are 2 files you needed to check for missing items.
Go to this folder:
and see if this file is there or not. If it does not exist, then create it with following values:
NOTE: HOST is your remote server IP address, BPATH is your remote server folder location that is going to store your backup file, for DATE and TIME I just put it any value before now. Save the file.
Then within the same folder, you have to open this file
You need to check 2 entries, that is
BACKUP_SYSTEM='sftp,local' means perform backup and storing the backup file on local and remote server
BACKUP_GZIP='1' means the compression level.
Add or Edit these 2 entries. Then save the file.
After that you can immediate test the remote backup by going to VestaCP control panel and click the green + button
Additional note: I always try to SSH to remote server from current server with VestaCP installation to accept the key manually and see if remote server login info is correct.
I hope this little guide can be useful to you.
I found my solution and wanted to share it. It might be useful for someone.
I am using Centos 7. There are 2 files you needed to check for missing items.
Go to this folder:
Code: Select all
/usr/local/vesta/conf
Code: Select all
sftp.backup.conf
Code: Select all
HOST='111.222.333.444'
USERNAME='YourRemoteServerUserName'
PASSWORD='YourPasswordForTheRemoteUser'
BPATH='/home'
PORT='22'
TIME='22:59:59'
DATE='2018-10-28'
Then within the same folder, you have to open this file
Code: Select all
vesta.conf
Code: Select all
BACKUP_SYSTEM='sftp,local'
BACKUP_GZIP='1'
BACKUP_GZIP='1' means the compression level.
Add or Edit these 2 entries. Then save the file.
After that you can immediate test the remote backup by going to VestaCP control panel and click the green + button
Additional note: I always try to SSH to remote server from current server with VestaCP installation to accept the key manually and see if remote server login info is correct.
I hope this little guide can be useful to you.