0
votes

i want to wget all the files from server A(file directory is /file A...) to another server.

server A file directory is

/file A
 file B/file c
 file D

i used the following command:

wget --ftp-user=user --ftp-password=psd ftp://ip/*

it download all files but not folder.how to download all of them. namely the above only download file A , file D. not download file B/file c. how to download all of the files. thank u

There is a new problem, there is a folder named content/upload/2014/1/some images. the images in this folder don't be downloaded. why. –

1

1 Answers

2
votes

add -r option :

wget -r -l 6 --ftp-user=user --ftp-password=psd ftp://ip/*