Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Transfer files from one server to another
Old 02-07-2008, 12:37 PM Transfer files from one server to another
Banned

Posts: 14
Name: Shan Ali
Trades: 0
Hi
Plz someone tell my is there any script through which we can upload files from one server to another Plzzzzz urgently needed. I hav tried FTP but it failed due to its poor speed. and I need any script for this purpose Plz give me or Plzzz if possible write a script for me
shanali4 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-07-2008, 06:10 PM Re: Transfer files from one server to another
The PHP Professor

Posts: 340
Name: Alex
Location: Behind You
Trades: 0
You mean a URL uploader that uploads files from a URL? Or do you just want to switch your server over to a new server with all the files?
__________________
Go Kirby! <(" . "<) (^" . "^) (>" . ")> Talkupation!
microcolt is offline
Reply With Quote
View Public Profile Visit microcolt's homepage!
 
Old 02-08-2008, 02:09 AM Re: Transfer files from one server to another
Banned

Posts: 14
Name: Shan Ali
Trades: 0
Quote:
Originally Posted by microcolt View Post
You mean a URL uploader that uploads files from a URL? Or do you just want to switch your server over to a new server with all the files?
I need a script through which i could transfer all files and directories to a new server Plzzzzzzz urgently needed
shanali4 is offline
Reply With Quote
View Public Profile
 
Old 02-08-2008, 03:17 AM Re: Transfer files from one server to another
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Do you have shell account on both servers? Usually such things are done with scp, not with scripts.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 02-08-2008, 10:19 AM Re: Transfer files from one server to another
Banned

Posts: 14
Name: Shan Ali
Trades: 0
Quote:
Originally Posted by mtishetsky View Post
Do you have shell account on both servers? Usually such things are done with scp, not with scripts.
Plz tell me what is SCP
shanali4 is offline
Reply With Quote
View Public Profile
 
Old 02-08-2008, 11:52 AM Re: Transfer files from one server to another
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
scp is Secure CoPy.
In your case, it's rather sftp [ http://en.wikipedia.org/wiki/SSH_file_transfer_protocol ] that I would use.
It's a sort of FTP stacked over a crypted channel, used to transfer files from a computer to another.

if you have a shell access on both computer, you can log on your first server, and issue a:
Code:
tar cvf bakup.tar
where you want to make the backup. This will create 1 big ball, with all your files in it.
Then, you transfer it on the other host:
Code:
scp bkp.tar username@name_of_the_server:/emplacement_to_put_the_file
Once it's over, you simply log on your new server, go to the destination of your files, and type:
Code:
tar xvf bkp.tar
and the exact same file structure will be recreated.
You might want to re-attribute the ownership of the files though, as the user and group id of the 2 servers are 100% certain to be different:
Code:
chown -R user:group * [enter]
chmod -R u+rwx,g+rx,o+rx,o-w [enter]
which will reassign every files and set pack usual permissions. You might need to restore specific "777" permissions on some directory, but you only can know that.

Otherwise, it may be slow, but you'll need to go the ftp way.
There is no voodoo, you must transfer the datas, and it can take some time.

Oh, and take care of the databases too, this is only valid for files.
Database transfer is something completely different.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-08-2008, 02:08 PM Re: Transfer files from one server to another
Ultra Talker

Posts: 483
Trades: 0
If you don't have a shell account, see if the 'source' and 'target' servers support FXP. FXP is essentially you making a connection to two FTP servers and then passing the connections to each other so you end up having one FTP server connected to the other.

The beauty of that is that they get the bandwidth between the two and not limited to you...
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 02-11-2008, 03:22 AM Re: Transfer files from one server to another
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
SCP also allows to transfer files from one server to another initiating it from third computer. But I can guess that if you don't have a shell account on one server there will be no use of FXP or SCP or whatever because they all require ability to log into shell account.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 02-11-2008, 07:10 PM Re: Transfer files from one server to another
starlord's Avatar
Extreme Talker

Posts: 209
Name: Darran
Trades: 5
Quote:
Originally Posted by mtishetsky View Post
SCP also allows to transfer files from one server to another initiating it from third computer. But I can guess that if you don't have a shell account on one server there will be no use of FXP or SCP or whatever because they all require ability to log into shell account.
not sure about SCP .. but I use FlashFXP and I do site to site all the time without a shell account just ftp logins

Starlord
__________________
##
Please login or register to view this content. Registration is FREE
##
Please login or register to view this content. Registration is FREE
##

Please login or register to view this content. Registration is FREE
starlord is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 02:23 AM Re: Transfer files from one server to another
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
You may be surprised but usually having an ftp account means that you can also login into shell with same credentials.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 02-13-2008, 10:04 AM Re: Transfer files from one server to another
starlord's Avatar
Extreme Talker

Posts: 209
Name: Darran
Trades: 5
Quote:
Originally Posted by mtishetsky View Post
You may be surprised but usually having an ftp account means that you can also login into shell with same credentials.

yep ... i do have on one account but not the other

but there seems to be a lot of hosts moving away from this, which is a shame ... but to be fair I have hardly ever needed it ... of course part of that could be that I'm to lazy to do things that way if theres something built into the cpanel etc ...

Starlord
__________________
##
Please login or register to view this content. Registration is FREE
##
Please login or register to view this content. Registration is FREE
##

Please login or register to view this content. Registration is FREE
starlord is offline
Reply With Quote
View Public Profile
 
Old 02-14-2008, 03:08 AM Re: Transfer files from one server to another
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Well in fact if you have account on source server then it is quite enough. You can log in, pack the stuff into single archive and then download and unpack it with script on target server.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to Transfer files from one server to another
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44719 seconds with 12 queries