Gotosocial Backup

📆
🏷
, , ,

purpose and application

Backing up gotosocial.

definitions

None.

steps

  1. 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
  2. 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

Resources

--EOF