From c96d68ed62ab4c5ec822fb68cf1a3ebf9aee5199 Mon Sep 17 00:00:00 2001 From: Puneetha Pai Date: Thu, 23 Jul 2020 21:25:39 +0530 Subject: [PATCH] DVC: add page including sub-commands freeze, unfreeze and gc --- pages/common/dvc-freeze.md | 13 +++++++++++++ pages/common/dvc-gc.md | 20 ++++++++++++++++++++ pages/common/dvc-unfreeze.md | 13 +++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 pages/common/dvc-freeze.md create mode 100644 pages/common/dvc-gc.md create mode 100644 pages/common/dvc-unfreeze.md diff --git a/pages/common/dvc-freeze.md b/pages/common/dvc-freeze.md new file mode 100644 index 000000000..8e0479b3f --- /dev/null +++ b/pages/common/dvc-freeze.md @@ -0,0 +1,13 @@ +# dvc freeze + +> Freeze stages in DVC pipeline. +> This makes DVC to stop tracking changes in stage dependencies and re-execution untill unfreeze. +> More information: . + +- Freeze given stage/s: + +`dvc freeze {{stage_name/s}}` + +- Unfreeze given stage/s: + +`dvc unfreeze {{stage_name/s}}` diff --git a/pages/common/dvc-gc.md b/pages/common/dvc-gc.md new file mode 100644 index 000000000..495939110 --- /dev/null +++ b/pages/common/dvc-gc.md @@ -0,0 +1,20 @@ +# dvc gc + +> Remove unused files and directories from cache or remote storage. +> More information: . + +- Garbage collect from cache, keeping only version referenced by current workspace: + +`dvc gc --workspace` + +- Garbage collect from cache, keeping only version referenced by branch/tags/all_commits: + +`dvc gc --all-branches --all-tags --all-commits` + +- Garbage collect from cache, including default cloud remote storage (if set): + +`dvc gc --all-commits --cloud` + +- Garbage collect from cache, including specific cloud remote storage: + +`dvc gc --all-commits --cloud -r {{remote_name}}` diff --git a/pages/common/dvc-unfreeze.md b/pages/common/dvc-unfreeze.md new file mode 100644 index 000000000..ab5c40fbf --- /dev/null +++ b/pages/common/dvc-unfreeze.md @@ -0,0 +1,13 @@ +# dvc unfreeze + +> Unfreeze stages in DVC pipeline. +> This makes DVC to start tracking changes in stage dependencies again after they were frozen. +> More information: . + +- Unfreeze given stage/s: + +`dvc unfreeze {{stage_name/s}}` + +- Freeze given stage/s: + +`dvc freeze {{stage_name/s}}`