Page 1 of 2

Cannot download ftp backup (remote) from an offsite server

Posted: Mon Jun 17, 2019 6:02 am
by geek
I have setup FTP backup in vestacp to an offsite FTP backup provider.

- The backups are being done properly (and sent to the FTP server)
However, when I try to download the backup from the control panel, it does not work. (I can access the backups fine via Filezilla if I directly connect to the ftp provider's server)

It just give me a blank page
Permissions in /home/backup are set correctly as admin:admin
screenshot attached
https://pasteboard.co/IjMZuYS.png

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Mon Jun 17, 2019 11:23 am
by grayfolk
Looks like your browser block download from insecure url.

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Tue Jun 18, 2019 9:42 am
by geek
grayfolk wrote:
Mon Jun 17, 2019 11:23 am
Looks like your browser block download from insecure url.
Tried with 3 different browsers. same exact result. I don't think its a browser issue.
I also want to clarify that I can download local backups just fine

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Tue Jun 18, 2019 10:41 am
by grayfolk
So, see logs.

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Tue Jun 18, 2019 11:38 am
by geek
grayfolk wrote:
Tue Jun 18, 2019 10:41 am
So, see logs.
nothing in any error logs. checked vesta nginx.
Also -> deleting the FTP backup from vesta, DOES NOT delete it from the FTP server

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Tue Jun 18, 2019 11:51 am
by linuxman
geek wrote:
Tue Jun 18, 2019 11:38 am
grayfolk wrote:
Tue Jun 18, 2019 10:41 am
So, see logs.
nothing in any error logs. checked vesta nginx.
Also -> deleting the FTP backup from vesta, DOES NOT delete it from the FTP server
Is normal when not delete from FTP server.
Session on FTP open when contact to upload backup.
Delete is working on NFS,Storage server, or when mount remote server on some folder something like /mnt/srvbackup with SFTP

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Tue Jun 18, 2019 12:46 pm
by geek
linuxman wrote:
Tue Jun 18, 2019 11:51 am
geek wrote:
Tue Jun 18, 2019 11:38 am
grayfolk wrote:
Tue Jun 18, 2019 10:41 am
So, see logs.
nothing in any error logs. checked vesta nginx.
Also -> deleting the FTP backup from vesta, DOES NOT delete it from the FTP server
Is normal when not delete from FTP server.
---Okay
Session on FTP open when contact to upload backup.
--- not sure what this means
Delete is working on NFS,Storage server, or when mount remote server on some folder something like /mnt/srvbackup with SFTP
So what to do that I can download the backup? I only get a blank page

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Tue Jun 18, 2019 1:10 pm
by linuxman
geek wrote:
Tue Jun 18, 2019 12:46 pm
linuxman wrote:
Tue Jun 18, 2019 11:51 am
geek wrote:
Tue Jun 18, 2019 11:38 am


nothing in any error logs. checked vesta nginx.
Also -> deleting the FTP backup from vesta, DOES NOT delete it from the FTP server
Is normal when not delete from FTP server.
---Okay
Session on FTP open when contact to upload backup.
--- not sure what this means
Delete is working on NFS,Storage server, or when mount remote server on some folder something like /mnt/srvbackup with SFTP
So what to do that I can download the backup? I only get a blank page
If you can login on remote server with ssh you can use the sftp or rsync or scp from remote to local.
I use the rsync command to sync local folder with remote server folder

Code: Select all

rsync -chavzP --rsh --progress -O username@remoteserver_IP_domain:/home/username/web/backup  /home/username/web/backup
When backup you remote and local folder.
And for this work and more secure not use standard ssh port 22 change it to other number but more secure use the SSH Keys
Here https://www.digitalocean.com/community/ ... h-keys--2 easy tutorial

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Wed Jun 19, 2019 6:56 am
by geek
@linuxman. I can either use FTP or SFTP.

I had hoped to do this from Vesta GUI config (not that I can't use the CLI).
The whole reason why I wanted to use ONLY remote backup is because I don't have much space on the VPS. So I wanted vestacp to backup directly to the FTP/sftp server automatically.

I wanted to know whether this is a bug in vestaCP or is it designed that way? (not able to download remote backups from vestacp UI)

Re: Cannot download ftp backup (remote) from an offsite server

Posted: Wed Jun 19, 2019 7:33 am
by linuxman
geek wrote:
Wed Jun 19, 2019 6:56 am
@linuxman. I can either use FTP or SFTP.

I had hoped to do this from Vesta GUI config (not that I can't use the CLI).
The whole reason why I wanted to use ONLY remote backup is because I don't have much space on the VPS. So I wanted vestacp to backup directly to the FTP/sftp server automatically.

I wanted to know whether this is a bug in vestaCP or is it designed that way? (not able to download remote backups from vestacp UI)
@geek I never see if backup upload to FTP and you can delete it there from Panel.
FTP backup is very old, ok is most quick to setup and not need serious tools.
To backup automatically see the docs How to configure FTP backup