This tool can help you with making project's snapshot. Tested only for development purporses.
Requirements:
- Installed spryker project.
- Docker with docker/sdk based deploy.
- Works only under project directory (data/dumps).
- Works only with bash 5+.
- Tested only on Mac / Linux.
Installation:
git clone [email protected]:zeetabit/dumper.git data/dumps
For actual usage & examples see help section in bash data/dumps/dumper.bash
Examples:
- make snaphot with
initial
prefix:
bash data/dumps/dumper.bash -m export -t initial
- restore the data from snapshot with
initial
prefix:
bash data/dumps/dumper.bash -m import -t initial
- (can be installed by
wget https://raw.githubusercontent.com/zeetabit/dumper/main/qa.sh
) go to thecustom_branch
with rebuild transfer objects and propel:install:
bash qa.sh -s custom_branch
- (can be installed by
wget https://raw.githubusercontent.com/zeetabit/dumper/main/qa.sh
) go to the initial branch, let's bedevelopment
and restore the data from snapshot withdevelopment
prefix:
bash qa.sh -r
- use custom install hook for qa.sh; (can be installed by
wget https://raw.githubusercontent.com/zeetabit/dumper/main/qa.sh
)
SPRYKER_HOOK_INSTALL="vendor/bin/install -r some/custom/path --no-ansi -vvv" bash qa.sh -i