We may use curl to upload files to a FTP server in background without user intervention. curl supports resume and retry features as well.
Upload a file to ftp server (-T / --upload-file <file>)
curl -T <file> ftp://server/path/
Upload a file to ftp server that require authentication (-u /-user <user:password>)
curl -u <user>:<password> -T <file> ftp://server/path/
Upload with Retry (--retry <num>) for non stable network connection
curl --retry 50 -u <user>:<password> -T <file> "ftp://server/path/"
Upload with Resuming
curl -C - -u <user>:<password> -T <file> "ftp://server/path/"
No comments:
Post a Comment