garden/How to/Backup hol.ogra.ph.md

9 lines
509 B
Markdown
Raw Permalink Normal View History

2024-11-28 11:56:52 -05:00
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.)