Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active January 6, 2021 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keijiro/0ee23ab991bb3e39e7d97bfec4de5e03 to your computer and use it in GitHub Desktop.
Save keijiro/0ee23ab991bb3e39e7d97bfec4de5e03 to your computer and use it in GitHub Desktop.
How to make a backup of a Plastic SCM repository

Taking a snapshot of a Plastic SCM workspace with tar

On WSL:

cat ignore.conf | sed -e s/^/./ | tar -I pigz -c -v --exclude=.plastic -X - -f ../snapshot.tar.gz .

Making a backup of a Plastic SCM repository using the fast-export format

On PowerShell:

cm fast-export RepositoryName backup.fast-export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment