vozzek Posted January 15, 2009 Share Posted January 15, 2009 Hi all, Okay, I've got a giant folder on my server filled with let's say 5,000 small image files. I need this exact folder on my other host's server, with all the files intact. What's the best way to do this? Ideally I'd like to write or find a php script that can accomplish this. Even if I can't do it server-to-server directly, maybe I could dump the folder onto my desktop and then restore it into the new server? I'm using CPanel and the backups provided are for the entire home folder or nothing. Someone else said I needed CURL. One more thing to learn I guess. How would you guys accomplish this? Thanks in advance for the help! Quote Link to comment Share on other sites More sharing options...
trq Posted January 15, 2009 Share Posted January 15, 2009 I would use Linux's scp command. Quote Link to comment Share on other sites More sharing options...
vozzek Posted January 16, 2009 Author Share Posted January 16, 2009 My Apache server is unix Quote Link to comment Share on other sites More sharing options...
Prismatic Posted January 16, 2009 Share Posted January 16, 2009 http://us3.php.net/manual/en/ref.ssh2.php Quote Link to comment Share on other sites More sharing options...
trq Posted January 16, 2009 Share Posted January 16, 2009 My Apache server is unix Pff, unix / linux, there practically the same OS. Take a look at scp, you don't need php for this. Quote Link to comment Share on other sites More sharing options...
acctman Posted January 20, 2009 Share Posted January 20, 2009 I would use Linux's scp command. i thought SCP was a bad method for copying files between servers with PHP because you can't unlink (delete) the files using PHP Quote Link to comment Share on other sites More sharing options...
trq Posted January 20, 2009 Share Posted January 20, 2009 I wasn't suggesting php be used at all. Quote Link to comment Share on other sites More sharing options...
acctman Posted January 20, 2009 Share Posted January 20, 2009 I wasn't suggesting php be used at all. oh i'm sorry. just from the topic title I thought you were refering to php. I'm trying to do the same thing copy a file from one server to another with php. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.