Is there any way i can backup all my Project to S3

Is there any way i can backup all my Project to S3 every day?
8 Replies
Adde
Adde7mo ago
Why whould you need to backup the projects? Or you mean like WP instanced or so, most of info are in a DB right? And you can backup configs I think
David Tran
David Tran7mo ago
I think this would be better to use the backup feature of the server.
ShaonPro
ShaonProOP7mo ago
Because my Appliction are important to me - i need to backup those. isn't is basic needs for someone?
Adde
Adde7mo ago
I think most of users deploy from somewhere and has that info backed up, for us github, we have obv backups for all repos but the deployment server itself no, no backups as it will just take us 5min again redeploying an app in case of a casastrophy
ElPoulpo
ElPoulpo7mo ago
@Adde Is there a way to backup database when service have the app and the database in the same docker-compose ? Or should we split them ? For example with Cal.com integration
services:
database:
image: postgres:16
networks:
- dokploy-network
volumes:
- calcom-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- DATABASE_URL=${DATABASE_URL}

calcom:
image: calcom/cal.com:latest
depends_on:
- database
environment:
- LICENSE=agree
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
- CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY}
- DATABASE_URL=${DATABASE_URL}
- DATABASE_DIRECT_URL=${DATABASE_URL}
- NEXT_PUBLIC_WEBAPP_URL=${NEXT_PUBLIC_WEBAPP_URL}
- NEXT_PUBLIC_API_V2_URL=${NEXT_PUBLIC_API_V2_URL}
#- GOOGLE_LOGIN_ENABLED=${GOOGLE_LOGIN_ENABLED}
- GOOGLE_API_CREDENTIALS=${GOOGLE_API_CREDENTIALS}
- EMAIL_FROM=${EMAIL_FROM}
- EMAIL_SERVER_HOST=${EMAIL_SERVER_HOST}
- EMAIL_SERVER_PORT=${EMAIL_SERVER_PORT}
- NODE_ENV=production

volumes:
calcom-data:
services:
database:
image: postgres:16
networks:
- dokploy-network
volumes:
- calcom-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- DATABASE_URL=${DATABASE_URL}

calcom:
image: calcom/cal.com:latest
depends_on:
- database
environment:
- LICENSE=agree
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
- CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY}
- DATABASE_URL=${DATABASE_URL}
- DATABASE_DIRECT_URL=${DATABASE_URL}
- NEXT_PUBLIC_WEBAPP_URL=${NEXT_PUBLIC_WEBAPP_URL}
- NEXT_PUBLIC_API_V2_URL=${NEXT_PUBLIC_API_V2_URL}
#- GOOGLE_LOGIN_ENABLED=${GOOGLE_LOGIN_ENABLED}
- GOOGLE_API_CREDENTIALS=${GOOGLE_API_CREDENTIALS}
- EMAIL_FROM=${EMAIL_FROM}
- EMAIL_SERVER_HOST=${EMAIL_SERVER_HOST}
- EMAIL_SERVER_PORT=${EMAIL_SERVER_PORT}
- NODE_ENV=production

volumes:
calcom-data:
A way to backup the database volumes ? Should I create a Database service and then connect calcom container to it ? It's the same for Metabase or Zitadel Integration.
Adde
Adde7mo ago
Yeah for sure if you can create a DB service for it you should as they (what I know) do have automatic backups already! Just remember that on building/startup containers doesnt have access to one another so if your app relys on the DB you need to expose the db to the web and then connect the app to it that way
ElPoulpo
ElPoulpo7mo ago
I see I see, it could be great to have a docker network specifically made to share container/service without the need of making them public And also allow multiple databases inside one database service instance to not have to pop 3 databases for low I/O services Seems that we can setup multiple backups for multiple database but can't create them
Adde
Adde7mo ago
Not sure but i thing the network thing are quite hard to fix

Did you find this page helpful?