Dev.to
7/9/2026

The original title is: "Automating Django `dumpdata` Backups to S3 (One Command, Zero SSH)"
Original: Automating Django `dumpdata` Backups to S3 (One Command, Zero SSH)
Short summary
A practical guide to automating Django dumpdata backups to S3 from a cookiecutter-django project running in Docker on a DigitalOcean droplet. The author explains the correct dumpdata flags—natural keys, excluding noise tables, indent for diffability—and critical Docker exec details like the -T flag to prevent JSON corruption. The result is a single local command that replaces a six-step manual SSH workflow.
- •Automates six-step manual Django backup into one local command
- •Explains dumpdata flags: natural keys, excluding noise tables, indent for git diffability
- •Highlights Docker exec -T flag to prevent carriage return corruption in piped JSON
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



