Export/import database and uploads from/to a VVV site using a shared Dropbox folder. Handy for sharing database and media between a team during development.
- Copy db-export.sh and
db-import.sh
to your project root folder - Update your
.env
file with the following variables. (Also see.env-example
)
VVV_IP=192.168.50.4
PROJECT_PATH="/Users/myusername/projects/projectfolder/"
VVV_PATH="/srv/www/projectfolder/htdocs"
DROPBOX_PATH="/Users/myusername/Dropbox/foldername/"
SQL_FILENAME="projectname"
INCLUDE_UPLOADS_IN_EXPORT=true
UPLOADS_PATH="web/app/uploads"
./db-export
The following files will be added to the shared Dropbox folder.
- projectname.sql
- projectname-uploads.zip
./db-import.sh
This script will use the files in the shared Dropbox folder, then login in to your VVV Vagrant box via ssh and import the .sql
file and the uploads
in the correct folder.
Urban Sanden - Urban Sanden
This project is licensed under the MIT License - see the LICENSE.md file for details