Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving apache? HTTP GET /*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sun Aug 22, 2004 12:28 pm    Post subject: Moving apache? HTTP GET /* Reply with quote

I want to move my web server over from it's current location (my old windows box), to it's new location (this lil gentoo machine I'm on now). It's a big directory (~10GB's), lotsa.. crap in it. I've tried zipping up folders and transfering them, but am finding the process not only tedious, but problematic as well (limited disk space on windows machine, so I have to make small archives, of large directorys, lots of nesting and sub-dirs, and links getting broken).

I've looked for web whackers/mirror utils, but only found windows one's that want to charge you... Then I thought about it for a minute... can't I open a terminal, issue some http commands, set my local directory, and tell it "go"... downloading *.*?
Can it be that easy or am I getting a wee too wishful?

- Mac
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sun Aug 22, 2004 12:39 pm    Post subject: Reply with quote

You may want to try the --mirror option for wget.
man wget wrote:
--mirror
Turn on options suitable for mirroring. This option turns on
recursion and time-stamping, sets infinite recursion depth and
keeps FTP directory listings. It is currently equivalent to -r -N
-l inf -nr.
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sun Aug 22, 2004 12:59 pm    Post subject: Reply with quote

WoW! Thanks Devon, didn't even know about that command!
Looks like it will do the trick for me, thanks (I knew it would be easy under 'nix).

- Mac
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sun Aug 22, 2004 1:18 pm    Post subject: Reply with quote

Hmm... OK, close.
wget grabbed everything from index.html on down the list.. of everything that's listed on one of the html pages.. But I've got gobs of file's just sitting in directory's (and nested sub-dir's....) that I want to get also. It's not linked, or in any html page.. just file's sitting in directory's, and I know the names of all the directory's, so it's easy for me to share the files (but if you don't know what dir. to search for..). How do I grab all THAT?
Literally, I want to cd into the wwwdir, and "cp *" but over http://. Am I going to have to setup file sharing between the two machines to do this? Do I have to append all the main dir's off the hostname? Will the -m option recursively go through all the dir's off the named dirs?

Do I have to tell it
Code:

wget -m http://10.0.1.2/foo
wget -m http://10.0.1.2/foo/foo1
wget -m http://10.0.1.2/foo/foo1/morefoo
...etc.


or when I give it the path to /foo, will it find the sub-dirs (and all sub-dirs of foo1 and morefoo)?
Thanks a million.

- Mac
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sun Aug 22, 2004 1:26 pm    Post subject: Reply with quote

ReeferMac wrote:
But I've got gobs of file's just sitting in directory's (and nested sub-dir's....) that I want to get also. It's not linked, or in any html page.. just file's sitting in directory's, and I know the names of all the directory's, so it's easy for me to share the files (but if you don't know what dir. to search for..). How do I grab all THAT?

The --mirror option should only follow hyperlinks across the site. How could wget know that you have a /foo directory if there is no link to it? :) You could setup wget to get the unlisted directories by hand, but that can get tedious.

ReeferMac wrote:
Am I going to have to setup file sharing between the two machines to do this?

You could start sshd on your Gentoo machine and use WinSCP to copy from your Windows machine to your Gentoo machine. Or you could emerge a ftp server and copy the files over using that. :)

The sshd option should allow you to start the transfer quicker (sshd should already be installed and WinSCP is a small download), but the transfer rate will not be as fast as with ftp.
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sun Aug 22, 2004 1:48 pm    Post subject: Reply with quote

Thanks Devon, that's one thing I'm thinking.... Much as I hate it (shudder), since I'm going to be shutting the windoze box down anyway, I could just slap IIS FTP server back on it and let things fly... it just didn't seem very gentoo-ish. ;) I've got a good sized wget -m directory coming over ATM, and it's been sucking up some serious bandwidth on the LAN.. so I think it's doing a good job of digging down through. I think I could prolly get a few of the larger dir's and sub-dir's off this way, delete them from the host, and then have the disk space to zip up the remaining contents of the server, and bring those over that way.
Thanks again!

- Mac
Back to top
View user's profile Send private message
phypor
n00b
n00b


Joined: 25 Jun 2002
Posts: 68
Location: Texas

PostPosted: Sun Aug 22, 2004 5:06 pm    Post subject: samba + rsync Reply with quote

On your old windoze box, share the directory with your files to move

On your linux box, mount the share

rsync --progress --modify-window=2 -rlt SRCDIR DESTDIR


I have it setup at work to mirror one of the secretaries document directories to my and my bosses laptops so we can have full access to those files even totally unconnected.

In that case, the linux box is glue between two windows machines
_________________
ALWAYS stay away from tanks enguled in fire.
- 2000 Emergency Response Guidebook, pg307
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum