Jump to content

Recommended Posts

Posted

hello.

i need to urgently transfer some files from web server A to web server B.

both servers are linux based.

server A allows me SSH access.

i am able to login to server A and then FTP the files to server B. but the main problem is that the command line interface sux.

i gotta keep switching between ascii and binary types dependin on the file and gotta do that manually for all the files...

its too slow and frustrating.

any body know of a PHP script or something which i can set up on server B so that i can pull the files directly frm A???

PS: total size is over 150MB, and over 10,000 files....so pls dont suggest i download everything on my pc and upload it on server B....i am on dial up...that too 24kbps in this crappy apartments phone line....

Posted
hello.

i need to urgently transfer some files from web server A to web server B.

both servers are linux based.

server A allows me SSH access.

i am able to login to server A and then FTP the files to server B. but the main problem is that the command line interface sux.

i gotta keep switching between ascii and binary types dependin on the file and gotta do that manually for all the files...

its too slow and frustrating.

any body know of a PHP script or something which i can set up on server B so that i can pull the files directly frm A???

PS: total size is over 150MB, and over 10,000 files....so pls dont suggest i download everything on my pc and upload it on server B....i am on dial up...that too 24kbps in this crappy apartments phone line....

Both Linux ...

you don't need to switch to ASCII, stay in binary for all files.

To transfer multiple files from the same diretory use:

- mprompt

- mget

(a bit of info here: http://gsbwww.uchicago.edu/computing/resea...f/z0178980.htm)

...

You could try to zip the all files (gzip is your friend), but you don't mention if you can ssh on box B ...

Alternativelly ... what about visiting a High-Speed internet cafe ? :o

Posted

thanks a lot for your reply singa-traz..

thanks for the info that i can stay in binary...makes my life a lot easier....

i dont have SSH on box B.

any PHP scripts available to unzip????

as in i can gzip the entire directory tree on box A....ftp it to box B....then usin some free PHP script to unzip the file from a web based interface....

there aint any hgh-speed internet cafe where i currenty am.

im not in bangkok rite now....and need everything copied b4 i return...

Posted
thanks a lot for your reply singa-traz..

thanks for the info that i can stay in binary...makes my life a lot easier....

i dont have SSH on box B.

any PHP scripts available to unzip????

as in i can gzip the entire directory tree on box A....ftp it to box B....then usin some free PHP script to unzip the file from a web based interface....

there aint any hgh-speed internet cafe where i currenty am.

im not in bangkok rite now....and need everything copied b4 i return...

You may have a look at this: http://phpfm.sourceforge.net/

Among the features of phpFileManager:

. server info

. directory tree

. copy/move/delete/create/rename/edit/view/chmod files and folders

. tar/zip/bzip/gzip

. multiple uploads

. shell/exec

. works on linux/windows

. php4/php5/apache2 compatible

I know it is possible to unzip file in PHP, but never did the coding myself.

Chok Dee !

Posted

I remember I did this, but forgot exactly how.

I think I made an connection in Putty and then transfered the files with wget or so ...

Try to get some info on wget ... you can transfer files from another server that way.

Posted
I remember I did this, but forgot exactly how.

I think I made an connection in Putty and then transfered the files with wget or so ...

Try to get some info on wget ... you can transfer files from another server that way.

i think u mean mget

in order to use putty, i need a SSH access.

i have ssh access on box A, so i have transfered by FTP, by ftp i mean mput...

i didnt manually for each folder this time...

nice link by singa-traz, will be very helpful for taking backups and in case i need to move again(seems unlikely)

when it comes to PHP i am just a script kiddie.....didnt do any sort of coding for the past 2 years...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Topics

  • Latest posts...

    1. 11

      Thai worker abandoned in Israel after hospital discharge - video

    2. 45

      Thailand vs Panama. Decisions Decisions!

    3. 40

      Just another day crossing the road...

    4. 27

      kingdom that should pay taxes

    5. 40

      Just another day crossing the road...

    6. 791

      UK Pensioners in Thailand Face New Scrutiny Over Pension Fraud

    7. 40

      Just another day crossing the road...

  • Popular in The Pub


×
×
  • Create New...