9 lines
509 B
Markdown
9 lines
509 B
Markdown
|
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.)
|