Compare commits

...

2 Commits

Author SHA1 Message Date
72d54962cb added gitignore [CI SKIP] 2024-07-25 14:12:59 +01:00
e19641c841 updated READMEs [CI SKIP] 2024-07-25 14:12:36 +01:00
2 changed files with 5 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.sw*

View File

@ -9,6 +9,8 @@ The following are backed-up:
* The MariaDB database (via a dump) * The MariaDB database (via a dump)
* The `originals` directory (depending on where you mount the backup volume) * The `originals` directory (depending on where you mount the backup volume)
Note: only backing-up the `originals` directory may not be sufficient. However, in my use-case, this backup system serves as a last resort, and I know I can re-generate other required files from the original data.
## Motiviation ## Motiviation
Whilst Photoprism provides [its own backup facility](https://docs.photoprism.app/getting-started/advanced/backups), I wanted something that I could easily run/manage using a separate container. Whilst Photoprism provides [its own backup facility](https://docs.photoprism.app/getting-started/advanced/backups), I wanted something that I could easily run/manage using a separate container.
@ -18,14 +20,12 @@ Whilst Photoprism provides [its own backup facility](https://docs.photoprism.app
Simply write a `docker-compose.yml` along the following lines: Simply write a `docker-compose.yml` along the following lines:
``` ```
version: '2'
services: services:
photosbackup: photosbackup:
image: wilw/photoprism-backup image: wilw/photoprism-backup
restart: always restart: always
volumes: volumes:
- /path/to/originals:/photoprism/originals - /path/to/originals:/photoprism/originals # Mount a parent directory instead to backup more than just the originals
environment: environment:
- PHOTOPRISM_DATABASE_SERVER=mariadbUri - PHOTOPRISM_DATABASE_SERVER=mariadbUri
- PHOTOPRISM_DATABASE_NAME=photoprism - PHOTOPRISM_DATABASE_NAME=photoprism
@ -42,7 +42,7 @@ services:
**Before bringing the container up, please read the following:** **Before bringing the container up, please read the following:**
Please remembeer to change the variables in the `environment` block: Please remember to change the variables in the `environment` block:
* `PHOTOPRISM_DATABASE_*`: Connection details to your Photoprism MariaDB server. This is easier if you include the `photosbackup` service in the same `docker-compose.yml` as your other Photoprism components. * `PHOTOPRISM_DATABASE_*`: Connection details to your Photoprism MariaDB server. This is easier if you include the `photosbackup` service in the same `docker-compose.yml` as your other Photoprism components.
* `RESTIC_REPOSITORY`: The repository name. For a Linode Object Storage bucket you can use `s3:eu-central-1.linodeobjects.com/bucket-name`. See below for other examples. * `RESTIC_REPOSITORY`: The repository name. For a Linode Object Storage bucket you can use `s3:eu-central-1.linodeobjects.com/bucket-name`. See below for other examples.