Page 1 of 1

VestaCP remote backup Error code: 1, SFTP error and solution

Posted: Sat Nov 17, 2018 6:17 pm
by user4683274645
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:

Code: Select all

/usr/local/vesta/conf
and see if this file

Code: Select all

sftp.backup.conf
is there or not. If it does not exist, then create it with following values:

Code: Select all

HOST='111.222.333.444'
USERNAME='YourRemoteServerUserName'
PASSWORD='YourPasswordForTheRemoteUser'
BPATH='/home'
PORT='22'
TIME='22:59:59'
DATE='2018-10-28'
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

Code: Select all

vesta.conf
You need to check 2 entries, that is

Code: Select all

BACKUP_SYSTEM='sftp,local'
BACKUP_GZIP='1'
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
Image

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.

Re: VestaCP remote backup Error code: 1, SFTP error and solution

Posted: Tue May 14, 2019 2:35 am
by phez
Thank you for the guide. I am using CentOS and still having issues. Created file as advised. SSH'ed in to remote server as advised. Still getting Error Code 1.

When setting SFTP on VestaCP still default to Port 21?

Thanks

Re: VestaCP remote backup Error code: 1, SFTP error and solution

Posted: Tue Jun 18, 2019 1:15 pm
by skamasle
phez wrote:
Tue May 14, 2019 2:35 am
Thank you for the guide. I am using CentOS and still having issues. Created file as advised. SSH'ed in to remote server as advised. Still getting Error Code 1.

When setting SFTP on VestaCP still default to Port 21?

Thanks
SFTP will run in SSH Port, default is 22, but you may need check remote SSH port and set it in your vestaconf