#!/bin/bash mkdir -p backups docker exec postgres pg_dump -U postgres smartshare > backups/backup.sql tar -czf backups/uploads.tar.gz uploads/