[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I need help to use find and curl together to upload a directory
From: |
Christoph Roland Murauer |
Subject: |
I need help to use find and curl together to upload a directory |
Date: |
Mon, 12 Aug 2013 12:45:53 +0200 |
Hello !
My WebHoster doesn't provide SSH or rsync so I decided to use find and curl to
upload my files on a FTPES (FTP over SSL / FTP over TLS) server.
The curl part worked fine using
curl -T ./filename -v -k -u address@hidden:password ftp://server/directory/
--ftp-ssl
But when I try to upload a whole directory (including subdirectories) using
find . -exec curl --ftp-create-dirs -T {} -v -k -u address@hidden:password
ftp://server/directory --ftp-ssl \;
I have the problem, that curl or find treats everything as a file instead of
directories if there are some (means I like to get the same structure on my FTP
account as I have on my local machine).
How could I fix this ? Thanks for your answer.
Regards,
C. M.
- I need help to use find and curl together to upload a directory,
Christoph Roland Murauer <=