Gotosocial Backup
purpose and application
Backing up gotosocial.
definitions
None.
steps
- Backup db
pg_dump -W postgres://gotosocial@127.0.0.1:5432/gotosocial | gzip > /var/tmp/gotosocial_$(date +%Y%m%dT%H%M%S).psql.gz
- Backup media files
gotosocial admin media list-attachments --config-path /etc/gotosocial.yaml --log-level fatal | xargs tar -cvzf /var/tmp/gotosocial-media_$(date +%Y%m%dT%H%M%S).tar.gz