When you guys create a local dev environment, run this command to create database backup:
n98-magerun db:dump --strip='@development' --stdout | gzip > site-type-$(date +%Y%m%d%H%M%S).sql.gz
Replace “site" with the name of the site that you are backing up and “type" with either “prod”, “dev”, or “stage”.
mysqldump database_name > database.sql
tar -czvf database.tar.gz database.sql
tar -czvf media.tar.gz current/pub/media/* --exclude "current/pub/media/import" --exclude "current/pub/media/catalog/product/cache"