How to copy a file from one online location to another ?

Discussion in 'Programming' started by richu, Jan 9, 2009.

  1. #1
    Hi,

    I use Cpanel. I have a file in one of my website - i want to copy the same file to another website - thats big file so i cant download it to my pc and then again upload it to the desired location - so i wanna know how to to copy that file to the other website ? through online ?

    Thanks
     
    richu, Jan 9, 2009 IP
  2. spiritfly

    spiritfly Well-Known Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Hey I have the same problem and I searched around a lot for this, but I didn't find any solution. Someone suggested at another thread here on DP (can't find it right now) that the only way is through SSH, but I'm not really sure how. Tried directly copying it through CuteFTP, but it didn't work.
     
    spiritfly, Jan 9, 2009 IP
  3. richu

    richu Peon

    Messages:
    460
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Wow , so its possible rite - are you sure that someone replied about it here ? Did you started a thread regarding this and got help ? If then it would be easy for me to find it - just by visiting your profile and then viewing the threads started by you.
     
    richu, Jan 9, 2009 IP
  4. spiritfly

    spiritfly Well-Known Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #4
    http://forums.digitalpoint.com/showthread.php?t=1167872

    Here, I found some information, but I couldn't figure it out, I even enabled SSH on my server, but still I couldn't figure how and where to transfer the files. I downloaded Putty and connected to my server through SSH, but the command that is given in the thread didn't work. Go ahead and try it, maybe it will work for you.
     
    spiritfly, Jan 9, 2009 IP
  5. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #5
    Use FTP or SSH. With an FTP program you can simply log into the public_html (root) of your web site directory and drag the file to the other site from the GUI.

    Good FTP programs on Windows included CuteFTP
    Mac - Interarchy or Transmit are good ones

    If you SSH in, you could do the same from the command line.

    Examples doing this via a terminal program are located here: http://linux.about.com/od/commands/l/blcmdl1_ftp.htm
     
    Mia, Jan 9, 2009 IP
  6. richu

    richu Peon

    Messages:
    460
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks for sharing it ...let me try it ...i'll inform you if i become successful
     
    richu, Jan 9, 2009 IP
  7. bennettelec

    bennettelec Peon

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    bennettelec, Jan 9, 2009 IP
  8. richu

    richu Peon

    Messages:
    460
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #8
    But in ftp , we can transfer btw our pc and server rite ? and not from one server to anther server rite ? It shud always be from our pc to online location or from online location to pc right ?
     
    richu, Jan 9, 2009 IP
  9. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #9
    Using SSH you can transfer from one server to the other, yes. With FTP, you could download from one server to your local pc, then transfer it on to another location. Some FTP software is powerful enough to mirror files from one server to another.
     
    Mia, Jan 9, 2009 IP
  10. richu

    richu Peon

    Messages:
    460
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #10
    What it means to mirror ? can you temme any such ftp client ?


    thanks
     
    richu, Jan 9, 2009 IP
  11. bennettelec

    bennettelec Peon

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11
    FlashFXP will do a FXP File Transfer which goes straight from one server to another it doesnt download to your pc first. it makes a connection between the 2 servers via ftp and transfers the file directly.
     
    bennettelec, Jan 9, 2009 IP
  12. bennettelec

    bennettelec Peon

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #12
    bennettelec, Jan 9, 2009 IP
  13. richu

    richu Peon

    Messages:
    460
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #13
    richu, Jan 9, 2009 IP
  14. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #14
    Ever look in one? See the reflection? Does it look at the same? That's mirroring.
     
    Mia, Jan 9, 2009 IP
  15. hassanahmad1

    hassanahmad1 Active Member

    Messages:
    150
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #15
    Hmmm if the file has public download link, then its possible that you run a php script on your server to download it to ur server.. its really easy
     
    hassanahmad1, Jan 9, 2009 IP
  16. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #16
    If the sites are on the same webserver that will be easy - ask your webhost to do it or just do it via SSH with a cp command
     
    crivion, Jan 10, 2009 IP
  17. JosephineX

    JosephineX Peon

    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #17
    if you have ssh access, use rsync its very easy to use.
     
    JosephineX, Jan 11, 2009 IP