A
A
akula222018-03-25 09:46:56
bash
akula22, 2018-03-25 09:46:56

How to upload a folder to an ftp server with all its contents in one command?

To download the desired folder from the ftp server, I use the following command

/usr/bin/wget -nH --cut-dirs=4 -r -P $TO ftp://$USER:$PASS@$HOST/$FROM

And how can I Upload a folder with all its contents, tell me the command?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2018-03-25
@gangstarcj

To do this, they came up with ssh and rsync

M
Moris Haos, 2018-03-25
@morihaos

Hi,
Wget is a downloader, not an uploader.
Install and use wput:
wput.sourceforge.net
or use what Sergey already suggested .

A
akula22, 2018-03-26
@akula22

I know that wput , I'm struggling with the command, it fills and builds on FTP the entire hierarchy of local folders

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question