can the NAS DOWNLOAD files via SFTP ?

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
McCloud
Starting out
Posts: 11
Joined: Tue Apr 05, 2016 7:32 pm

can the NAS DOWNLOAD files via SFTP ?

Postby McCloud » Tue Feb 14, 2017 8:59 pm

Hey,

the Telnet/SSH option allows me to connect TO the NAS.

Does it work the 'other way' round ?

Is the NAS able to reach to a server / domain and DOWNLOAD files from it (and save them) via SFTP ?

We need to perform automated backups and download files from a server on the internet.

Or does it need to be configured from the other end, so that the server reaches the NAS via SSH and 'uploads' the backups to it automatically ?

Thanks!

User avatar
OneCD
Experience counts
Posts: 3231
Joined: Sun Aug 21, 2016 10:48 am
Location: over there, behind that sofa...

Re: can the NAS DOWNLOAD files via SFTP ?

Postby OneCD » Wed Feb 15, 2017 1:20 am

McCloud wrote:the Telnet/SSH option allows me to connect TO the NAS.

Does it work the 'other way' round ?

It sure does! :geek:

I've switched to pure Debian on my production NAS (TS-569 Pro), with the backup NAS (TS-559 Pro+) to follow, so I'll no longer be able to use or support QNAP's firmware. This means no more closed-source software, "Malware Removers", etc ... If you have the means, I highly recommend it. Powerup/poweroff times are < 1 minute. :D

one.cd.only@gmail.com

McCloud
Starting out
Posts: 11
Joined: Tue Apr 05, 2016 7:32 pm

Re: can the NAS DOWNLOAD files via SFTP ?

Postby McCloud » Wed Feb 15, 2017 3:58 pm

would I need to connect via SSH (and terminal on Mac) and configure it via commands ?

I got something like this:
wget -m ftp://<domain>/* --user='<username>' --password='<password>'

User avatar
OneCD
Experience counts
Posts: 3231
Joined: Sun Aug 21, 2016 10:48 am
Location: over there, behind that sofa...

Re: can the NAS DOWNLOAD files via SFTP ?

Postby OneCD » Thu Feb 16, 2017 2:53 am

McCloud wrote:would I need to connect via SSH (and terminal on Mac) and configure it via commands ?

Yes, unless you could create a backup job in Backup Station to do this.

McCloud wrote:I got something like this:
wget -m ftp://<domain>/* --user='<username>' --password='<password>'

That may work but I can't check it. ;)

Here's a guide that may be useful for creating an SFTP connection.

To install the sftp binary, you'll first need to install the Entware-ng QPKG.

Then you can install sftp:

Code: Select all

opkg update; opkg install openssh-sftp-client

If your downloads will take a while, I suggest you use screen. This way, you can disconnect your SSH session and reconnect to it later.

I've switched to pure Debian on my production NAS (TS-569 Pro), with the backup NAS (TS-559 Pro+) to follow, so I'll no longer be able to use or support QNAP's firmware. This means no more closed-source software, "Malware Removers", etc ... If you have the means, I highly recommend it. Powerup/poweroff times are < 1 minute. :D

one.cd.only@gmail.com

McCloud
Starting out
Posts: 11
Joined: Tue Apr 05, 2016 7:32 pm

Re: can the NAS DOWNLOAD files via SFTP ?

Postby McCloud » Fri Feb 17, 2017 6:07 pm

perfect, thanks!

That's some really good info. The Backup Station and RTRR is probably what I was looking for the whole time :)


Return to “File Sharing”

Who is online

Users browsing this forum: No registered users and 9 guests