# Requirements

Immich backup script. This script should be run daily and should backup the following immich objects. Based on recommendations from https://immich.app/docs/administration/backup-and-restore/
1. Postgres database (using pg_dumpall as recommended by Immich)
2. User upload directories (photos, videos, and metadata)

## Notification
- Send a notification using the curl command to the <https://notify.peterwood.rocks/lab> when the backup starts and when it completes.
- Add the file names and sizes to the message.
- Ensure that the timestamps aren't appended.
- Emojis are fun in those kinds of notifications - success, failure, or warning.
- Follow the same methodology as is present in the plex backup script `plex/backup-plex.sh`.

## Backblaze
- Backblaze B2 bucket for off-site storage - once the archived file is created, I want to send it transfer it to a backblaze b2 bucket.
- Backblaze has a CLI app available for download here <https://github.com/Backblaze/B2_Command_Line_Tool/releases/download/v4.3.2/b2-linux>.
- Download it if it does not exist already and place it in the immich directory.
- Their quickstart guide is here <https://b2-command-line-tool.readthedocs.io/en/master/quick_start.html>

