Skip to content

Export/import database and uploads from VVV to a shared Dropbox folder. Handy for sharing database and media between a team during development.

Notifications You must be signed in to change notification settings

sprintworks/vvv-teamdrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VVV Teamdrop

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.

vvv-teamdrop

Prerequisites

  • A shared Dropbox folder
  • VVV
  • A WordPress site already setup, preferably using Bedrock.

Getting Started

  • 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"

Export

./db-export

The following files will be added to the shared Dropbox folder.

  • projectname.sql
  • projectname-uploads.zip

Import

./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.

Authors

Urban Sanden - Urban Sanden

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Export/import database and uploads from VVV to a shared Dropbox folder. Handy for sharing database and media between a team during development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages