Question

I have to mirror a site using php. I am using the google code of the following link http://code.google.com/p/php-dynamic-mirror/

I have specified all the settings as it was given in docs. But when I go to the mirror site url its always give me a 404 page not found error. Any help will be highly appreciated here is the link of my mirror site http://tinyurl.com/99p99og

Was it helpful?

Solution

You can use HTTrack Website Copier.

HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility.

It allows you to download a World Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML, images, and other files from the server to your computer. HTTrack arranges the original site's relative link-structure. Simply open a page of the "mirrored" website in your browser, and you can browse the site from link to link, as if you were viewing it online. HTTrack can also update an existing mirrored site, and resume interrupted downloads. HTTrack is fully configurable, and has an integrated help system.

WinHTTrack is the Windows 2000/XP/Vista/Seven release of HTTrack, and WebHTTrack the Linux/Unix/BSD release.

OTHER TIPS

Try wget. If you don't have a cygwin or a unix box to run wget on there are win32 packages about.

wget --mirror http://www.example.org/

See https://serverfault.com/questions/155743/how-to-refresh-an-online-website-mirror-created-with-wget-mirror

We use rsync for that:

rsync is a software application and network protocol for Unix-like systems with ports to Windows that synchronizes files and directories from one location to another while minimizing data transfer by using delta encoding when appropriate. Quoting the official website: "rsync is a file transfer program for Unix systems. rsync uses the 'rsync algorithm' which provides a very fast method for bringing remote files into sync."[3] An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction. rsync can copy or display directory contents and copy files, optionally using compression and recursion.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top