Skip to content

heb-dtc/SyntropicFarming

Repository files navigation

SyntropicFarming

This is the repository for the Synctropic Farming project.

Applications

Backend

Frontend

Database

Deploy

docker-compose

Start the api and the db using docker-compose.

docker-compose up -d api

Because the api needs the db service to run, starting the api will automatically start the db.

Backup and Restore

There are two things to do when doing a backup of the data:

  • export the database data
  • copy the upload directory of the backend

Backup the db

docker exec syntropic-db-container pg_dump <db_name> --username <user> | gzip -9 > backup.sql.gz

Restore the db with backup file

gunzip < database/backup.sql.gz | docker exec -i db_container psql <db_name> --username <user>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published