From 6421b6b6c9deb16335d2b42b3f551d0332ee13dc Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 17 Nov 2023 23:15:31 +0100 Subject: [PATCH] Stub for testing restore of a backup mande with the cloud_backup script. --- test/Dockerfile | 4 ++++ test/README.md | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 test/Dockerfile create mode 100644 test/README.md diff --git a/test/Dockerfile b/test/Dockerfile new file mode 100644 index 0000000..e90f4bf --- /dev/null +++ b/test/Dockerfile @@ -0,0 +1,4 @@ +## Creates a docker image of debian + Apache + PHP + Maria DB. +# Build the Image and run a Container to test the restore of your cloud_backup. + +FROM debian:Bookworm \ No newline at end of file diff --git a/test/README.md b/test/README.md new file mode 100644 index 0000000..5d43d47 --- /dev/null +++ b/test/README.md @@ -0,0 +1,6 @@ +# Testing the Backup + +The backup created with cloud_backup.sh can be tested by restoring with `cloud_restore.sh`. That can be done in the sandboxed environment a docker container provides. + +With the [Dockerfile](./Dockerfile) an image of debian Bookworm + Apache + PHP + MariaDB is created. Run a container, check the correct deployment of your backup settings and run the `cloud_restore.sh` script from the users home inside the container. After that a copy of your cloud should be accessible via `http://localhost:8080/`. +