-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
# Vagrant content dump/load | ||
|
||
This directory includes tools for dumping and loading data from the vagrantbox. The data we talk about is the database (postgres dump) & the user uploaded images & documents. | ||
|
||
Both of these scripts are supposed to be executed from the vagrant box as the vagrant user. | ||
|
||
## dump.sh | ||
Will generate a rsr_dump file in ./dump/rsr_dump.<timestamp>.tar.gz. | ||
This file consist of | ||
- db (user uploaded images) | ||
- rsr.dump (Postgres dump) | ||
- rsr.json (Django dump) | ||
|
||
|
||
## load.sh | ||
Expects a file ./dump/rsr_dump.tar.gz. This files requires the db directory and the rsr.dump Postgres dump but not the Django data dump. | ||
These scripts are supposed to be run from the vagrant box. The load.sh script expects a file in dump/rsr_dump.tar.gz. Since load.sh adds date to the file a manual rename is needed! |