We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
VestaCP remote backup Error code: 1, SFTP error and solution
-
- Posts: 1
- Joined: Sat Nov 17, 2018 4:57 pm
- Os: CentOS 6x
- Web: apache + nginx
VestaCP remote backup Error code: 1, SFTP error and solution
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.
Re: VestaCP remote backup Error code: 1, SFTP error and solution
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
When setting SFTP on VestaCP still default to Port 21?
Thanks
Re: VestaCP remote backup Error code: 1, SFTP error and solution
SFTP will run in SSH Port, default is 22, but you may need check remote SSH port and set it in your vestaconf