About Synchronizing Files Between Different Environments
To download a single database dump from production to staging environment, you can use the unix scp
command as follows:
1 2 | $ scp <username>@<host>:~/path/to/production/backups/latest.sql \
/path/to/staging/backups/latest.sql
|
To download multiple media files from production to staging, you can use the unix rsync
command as follows:
1 2 3 | $ rsync --archive --compress --partial --progress \ <username>@<host>:/path/to/production-media-directory/ \ /path/to/staging-media-directory/ |
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You