~sirodoht/mataroa

ref: HEAD mataroa/backup-database.sh -rwxr-xr-x 258 bytes
2604e18cTheodore Keloglou migrate all models primary keys to BigAutoField 5 days ago
                                                                                
1
2
3
4
5
6
#!/usr/bin/env bash

cd /home/roa/mataroa
source .envrc
pg_dump -Fc --no-acl mataroa -h localhost -U mataroa -f /home/roa/mataroa.dump -w
/usr/local/bin/aws s3 cp /home/roa/mataroa.dump s3://mataroa/backups/postgres-mataroa-$(date --utc +%Y-%m-%d-%H-%M-%S)/