Hi!
I would like to know if it is possible to upload to an Asustore AS5304T using a command line instead of using the web interface.
This is because I would like to able to transfer huge datasets directly from a non GUI server to the NAS.
Thanks!
Regards.
Upload with CURL
-
- Posts: 2
- youtube meble na wymiar Warszawa
- Joined: Thu Sep 12, 2024 10:10 pm
-
- Posts: 2193
- Joined: Sat Sep 12, 2015 2:55 am
- Location: La Rochelle (France)
Re: Upload with CURL
Hi,
Open a terminal (ssh as root or any administrators) and use command line tools :
for ex.
Delivered with ADM
... curl, wget, sftp
Using Entware APKG that provide +2500 packages including
... GNU version of curl, wget, sftp (openssh-sftp-client)
... extra ftp client (scriptable), webdab fs and ssh fs able to mount remote folder as local mountpoint.
... etc. etc.
lot of them ADM and Entware are scriptable ... so can be start in background using screen (ADM) or tmux (Entware) so you can quit and stay it running in the background.
Philippe.
Open a terminal (ssh as root or any administrators) and use command line tools :
for ex.
Delivered with ADM
... curl, wget, sftp
Using Entware APKG that provide +2500 packages including
... GNU version of curl, wget, sftp (openssh-sftp-client)
... extra ftp client (scriptable), webdab fs and ssh fs able to mount remote folder as local mountpoint.
... etc. etc.
lot of them ADM and Entware are scriptable ... so can be start in background using screen (ADM) or tmux (Entware) so you can quit and stay it running in the background.
Philippe.
Asustor updated
to ADM 5.0
FS6706T / AS3302Tv2 / AS5202T
Asustor using last ADM 4.x
AS6602T
Asustor E.O.L. at A.D.M. 4.0
AS5002T / AS1002T
Asustor past
AS202T

FS6706T / AS3302Tv2 / AS5202T
Asustor using last ADM 4.x

AS6602T
Asustor E.O.L. at A.D.M. 4.0

AS5002T / AS1002T
Asustor past

AS202T
-
- Posts: 2
- Joined: Thu Sep 12, 2024 10:10 pm
Re: Upload with CURL
Thanks for the reply. I don't even need root access to the NAS, as you suggested.
I would like to know the method/URL to call from a client PC to be able to upload via https, using their respective credentials.
something like ...
curl -i -X POST host:port/post-file \
-H "Content-Type: text/xml" \
--data-binary "@path/to/file"
Thanks
I would like to know the method/URL to call from a client PC to be able to upload via https, using their respective credentials.
something like ...
curl -i -X POST host:port/post-file \
-H "Content-Type: text/xml" \
--data-binary "@path/to/file"
Thanks
-
- Posts: 583
- Joined: Sat Mar 16, 2013 6:58 am
- Location: Wiltshire, England
Re: Upload with CURL
I do not believe this is possible via https. You need to access the NAS via SSH as father.mande described above. Access via https is limited to the GUI.