A vendor plugin for Saber that allows webmasters to backup & restore web content for their Saber website using a simple zip file.
For Visual Studio Users
- Clone this repository inside your Saber project within
/App/Vendors/and name the folder ImportExport
git cloneinstead of
git submodule addsince the contents of the Vendor folder is ignored by git
gulp vendorsfrom the root of your Saber project folder
For DevOps Users
While using the latest release of Saber, do the following:
- Download latest release of Saber.Vendors.ImportExport
- Extract all files & folders from either the
linux-x64zip folder to Saber's
- run command
bin/Publish/ImportExport.7zas latest release
Zip File Structure
Accepted Folder Structure
Please make sure the files contained within the zip file you wish to import follows the folder structure below. None of the folders or files below are required to be included within your zip file.
NOTE: Folder & file names that are labeled "my-" are an example of custom folders or files that can be named however you want. Also, you can create as many custom folders or files as you want within the given folder structure where ever the folder or file names are labeled with "my-".
- any file type (.jpg, .png, .gif, .ico, .js, .css, .svg, .avi, .mpg, etc)
- any files assoiated with a page (.jpg, .png, .gif, .pdf, .zip, etc)
Ignored Folder Structure
Do not include any of the folders defined below within your zip file. These are system folders reserved for the Saber platform only.
Zip File Processing
After importing your zip file, all acceptable files will be copied to their respective folders, then all *less files will be compiled to css and copied to the wwwroot folder and nny js files outside of the wwwroot folder will be copied into the wwwroot folder as well.
NOTE: The wwwroot folder is a public-facing folder that any user can download content from.