Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

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

RHEL/CentOS related topics
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
user4683274645
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
  • Quote

Post by user4683274645 » 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:

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.
Top

phez
Posts: 29
Joined: Mon Nov 25, 2013 7:07 am

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

Post by phez » 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
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

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

Post by skamasle » Tue Jun 18, 2019 1:15 pm

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
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password