Scripts to automate the process of mirroring a website and hosting it on a Raspberry Pi using Docker. Includes both the main mirroring script and a cleanup script.
Certainly! Here's a revised README.md
for your repository:
Scripts to automate the process of mirroring a website and hosting it on a Raspberry Pi using Docker. This repository contains both the main mirroring script (script.sh
) and a cleanup script (cleanup.sh
).
- A Raspberry Pi with a compatible OS (e.g., Raspbian).
- Docker installed and running on the Raspberry Pi.
httrack
tool installed.- Git (for cloning the repository).
-
Clone this repository to your Raspberry Pi:
git clone https://github.com/DALLASPI/website-mirror-rpi.git cd website-mirror-rpi
-
Make the scripts executable:
chmod +x script.sh cleanup.sh
Run the main script with the following command:
./script.sh -u WEBSITE_URL [-s SAVE_PATH] [-p DOCKER_PORT]
-u
: (Required) The URL of the website you want to mirror.-s
: (Optional) Path to save the mirrored website. Default is in the home directory undermirroredsite
.-p
: (Optional) Port to run the Docker container. Default is80
.
Run the cleanup script to remove the mirrored site and Docker container:
./cleanup.sh -u WEBSITE_URL [-p DOCKER_PORT]
If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is open-source and available under the MIT License.