Answers for "linux curl upload file ftp"

0

linux curl upload file ftp

# curl -T backup-file.tar.gz ftp://username:[email protected]/backup/
Posted by: Guest on October-16-2020
0

curl ftp upload file to directory

@echo off 
set localdir=C:\something
set ftphost=your.ftp.host.com
set ftpuser=yourftpuser
set ftppass=yourftppassword
set ftpdir=target/directory/on/server

setlocal enableDelayedExpansion

for /F %%x in ('dir /B/D %localdir%') do (
  set FILENAME=%localdir%\%%x
  curl -T !FILENAME! ftp://%ftphost%/%ftpdir%/ --user %ftpuser%:%ftppass%
)
Posted by: Guest on September-02-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language