garden/How to/Backup hol.ogra.ph.md
2024-11-28 10:56:52 -06:00

509 B

Holograph backup creation:

  1. Stop sharkey_web container: sudo docker container stop sharkey_web
  2. Dump PostgreSQL database: sudo docker exec sharkey_db sh -c 'pg_dumpall -U ograph' > /opt/sharkey/holograph_pg_ver[VERSION WITHOUT '.']_[DATE].sql
  3. Archive entire sharkey directory. From inside /opt/sharkey, run: tar --exclude='./db' --exclude='./db-old' --exclude='./*.tar.gz' -czvf sharkey_ver[VERSION WITHOUT '.']_[DATE].tar.gz .
  4. Copy backup via method of choice. (SFTP, SCP, etc.)