You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Not Sam 5b5bc47967
Change shebang
Allows to be run without calling python in venv

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2 years ago
fce-backup Change shebang 2 years ago
.gitignore Adding requirements.txt for venv 2 years ago
README.md Change python file in README 2 years ago
env-example added .env and refactor full backup 2 years ago

README.md

Pleroma tools

This repo is a small collection of scripts and things for pleroma.


Pleroma Backup

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

Params

-p --path

this is the directory you want your backup files saved in

-f --full

this uses the env file to define where your uploads and static directory is, zip them, and move them to your backup directory.

-r --rsync

this uses the env file to pass your information to rsync and move your desired backups somewhere else