On the server-side create directory content that will be hosted from a one-line Python script.
mkdir /tmp/fakeserver
cd /tmp/fakeserver
git clone https://github.com/torvalds/linux.git
sudo python -m SimpleHTTPServer 80
On the client-side use wget to spider and download the entire content of the server.
Replace <TEST SERVER> with the servers IP or resolvable name.
mkdir /tmp/fakeserver
cd /tmp/fakeserver
wget --mirror --convert-links --adjust-extension \
--page-requisites --no-parent http://<TEST SERVER>/
No comments:
Post a Comment