SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist runeveryday's Avatar
    Join Date
    Jul 2009
    Posts
    437
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Wget download FTP files but image 0 kb

    i want to usewget download all the files from server A(file directory is /file A...can't be compress those files) to another server B.

    server A file directory is

    Code:
    /file A
     file B/file c
     file D
    i used the following command:

    HTML Code:
    wget -r -l 20 --ftp-user=user --ftp-password=psd ftp://ip/*
    there is a folder named content/upload/2014/1/some images. the images in this folder can download but all are not open. why? it's all 0kb. other images from other folders are ok.
    Outdoor tools online store and wargame tools shop
    with best quality and service.
    comp molle tactical vest tactical clothing etc sell

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    If this isn't your own server, some sites have blocks in place to prevent automated downloading.

    If this is your own server, use an FTP/SFTP client to download files from your web server.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Evangelist runeveryday's Avatar
    Join Date
    Jul 2009
    Posts
    437
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Force Flow View Post
    If this isn't your own server, some sites have blocks in place to prevent automated downloading.

    If this is your own server, use an FTP/SFTP client to download files from your web server.
    It's my server. if using an FTP/SFTP client to download files from server A then upload all the files to server B . it's too slowly
    Outdoor tools online store and wargame tools shop
    with best quality and service.
    comp molle tactical vest tactical clothing etc sell

  4. #4
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,559
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    You might be better using rsync rather than wget


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •