Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Add pack and unpack convenience scripts #3502

Merged
merged 3 commits into from
Jul 18, 2022

Conversation

mkolar
Copy link
Member

@mkolar mkolar commented Jul 13, 2022

These scripts provide easier way to export a full project with database and all of it's data and subsequently load it back.

Courtesy of @jakubjezek001

The most common use is for testing purposes. This makes it possible to export a current state of projects, do testing publishes and then return to the previous state. The result is a zip file containing everything needed for the project, so it is not suitable for packing full project at production scale.

Additional info

The pack project currently doesn't include project settings

Testing notes:

packing

  1. run pack_project.ps1 with a project name as an argument.
  2. you should be left with a zip file next to the project root folder

unpacking

  1. run unpack_project.ps1 path/to/project.zip
  2. check if the project has been unpacked and the original project folder renamed for a backup

@mkolar mkolar self-assigned this Jul 13, 2022
@mkolar mkolar added the type: enhancement Enhancements to existing functionality label Jul 13, 2022
@mkolar mkolar force-pushed the feature/add_pack_upack_convenience_scripts branch from 15bbeb7 to 9a3a01c Compare July 13, 2022 07:05
Copy link
Member

@iLLiCiTiT iLLiCiTiT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scripts are working

Copy link
Member

@m-u-r-p-h-y m-u-r-p-h-y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packing project:

image

unpacking project;
image

works as expected

@mkolar mkolar merged commit e7aa1dc into develop Jul 18, 2022
@mkolar mkolar deleted the feature/add_pack_upack_convenience_scripts branch July 18, 2022 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants