2022-06-18

Kopia: Handling Directories That No Longer Exist

 Scenario

  1. There exists a policy that snapshots directory ABC 
  2. Directory ABC now no longer exists
  3. You want to keep existing snapshots
  4. You want to stop kopia from attempting to take any more snapshots

In order to achieve (4):

  1. Set the policy to manual only
  2. Disable inheritance from parent/global policy

(2) is required as otherwise I find ABC's policy somehow inheriting the scheduling settings from the parent/global policy and thus is scheduled even though manual snapshots only is set.

To carry out the above steps:

  • KopiaUI: 
    • Edit Policy 
      • Scheduling > Manual Snapshots Only 
      • Other > Disable Parent Policy Evaluation
  • CLI: set policy --manual --inherit false