This repo is a small collection of scripts and things for pleroma.
How to run the backup script
- First create and activate a venv
cd fce-backup/ python3 -m venv .venv source .venv/bin/activate
- Install your requirements
pip3 install -r requirements.txt
- While the venv is active run the script as the postgres user (or whichever user has db ownership)
sudo -Hu postgres python3 backup.py -p /path/to/backup/dir
this is the directory you want your backup files saved in
this uses the env file to define where your uploads and static directory is, zip them, and move them to your backup directory.
this uses the env file to pass your information to rsync and move your desired backups somewhere else