If your organization requires a set of project resources to be saved separately to another location, consider exporting the project.
Exporting projects consists of two steps,
- Creating a .csv file describing resources and their locations,
- A power shell script that utilizes the .csv file to save off the resources and their various versions.
Note: The functionality was constructed to export one project at a time. For multiple projects, simple run through the defined steps for each project.
To export a project,
- Navigate to the Centro Catalog projects page.
- For the specific project you desire to export, click on the associated menu and select Export.
- A .csv file is created that contains descriptions all the resources for the project which include:
- Resource name
- Mime type
- Location name
- Part name
- Part Catalog ID
- Date last modified
- File size
- Each version
- File path to the resource
- Resource filename
- A system administrator can take this information to save off the resources and their versions or can opt to use a power shell script such as the following.
- Run the power shell script as an administrator.
Given the CSV output from the Project export function, copy CatalogResources to a new location.
The Project export function can be used to produce a CSV report of all Resources associated with a Project.
This script takes that CSV report as an input, and copies files from the CatalogResources folder into a new location.
powershell.exe -f project-export-script.ps1 -catalogResources "E:\CatalogResources" -inputFile "C:\Downloads\my-csv-file.csv" -outputPath "\\backup-location\CatalogResources"
The full filepath of the folder used as the CatalogResources location for Centro WebApp.
The full filepath of the CSV report.
The full filepath of the folder where files will be copied.
Unless you set useCatalogIdAsFolderName, the existing directory structure within the CatalogResources folder is preserved.
Set true if you want to create folders using Catalog IDs/Resource names for folders, instead of copying the CatalogResources folder structure.