You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
Frequently Asked Questions
How to temporarily pause a backup?
Pause Backup
Run the following commands to pasue a backup temporarily,
# pause backup by patching BackupConfiguration
❯ kubectl patch backupconfiguration -n <namespace> <backupconfiguration name> --type="merge" --patch='{"spec": {"paused": true}}'
# pause backup using Stash `kubectl` plugin
❯ kubectl stash pause backup -n demo --backupconfig=<backupconfiguration name>
Resume Backup
Similarly you can also resume a paused backup. Run the following commands to resume a backup,
# resume backup by patching BackupConfiguration
kubectl patch backupconfiguration -n <namespace> <backupconfiguration name> --type="merge" --patch='{"spec": {"paused": false}}'
# resume backup using Stash `kubectl` plugin
❯ kubectl stash resume backup -n demo --backupconfig=<backupconfiguration name>
When retentionPolicy
is applied?
retentionPolicy
specifies the policy to follow for cleaning old snapshots. Stash removes any snapshot from backend that falls outside the scope of the policy. When a BackupSession
is completed, Stash checks for outdated snapshots according to the retentionPolicy
and remove them. If you use the policy keep-last-5
, Stash will remove any snapshot that is older than the most recent 5 snapshots.
Do I need to delete the init containers after recovery?
You don’t need to delete the init containers after recovery. If your workload restarts with the stash-init
init-container for any reason, the init-container will skip running restore process if there is no pending RestoreSession for this workload. If you delete the RestoreSession, Stash will remove the init-container
automatically. Beware that it will cause your workload to restart.
I am experiencing problem X. How do I fix this?
Please check our troubleshooting guide here.
Need More Help?
To speak with us, please leave a message on our website.
To join public discussions with the Stash community, join us in the AppsCode Slack team channel #stash
. To sign up, use our Slack inviter.