From ba381f8721d556282f5c0d9369da420cfaea7f16 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 24 Jul 2024 10:52:05 +0100 Subject: [PATCH] b2: update versions documentation - fixes #7878 --- docs/content/b2.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/content/b2.md b/docs/content/b2.md index a53d66b60..28f31c240 100644 --- a/docs/content/b2.md +++ b/docs/content/b2.md @@ -164,12 +164,21 @@ used. ### Versions -When rclone uploads a new version of a file it creates a [new version +The default setting of B2 is to keep old versions of files. This means +when rclone uploads a new version of a file it creates a [new version of it](https://www.backblaze.com/docs/cloud-storage-file-versions). Likewise when you delete a file, the old version will be marked hidden -and still be available. Conversely, you may opt in to a "hard delete" -of files with the `--b2-hard-delete` flag which would permanently remove -the file instead of hiding it. +and still be available. + +Whether B2 keeps old versions of files or not can be adjusted on a per +bucket basis using the "Lifecycle settings" on the B2 control panel or +when creating the bucket using the [--b2-lifecycle](#b2-lifecycle) +flag or after creation using the [rclone backend lifecycle](#lifecycle) +command. + +You may opt in to a "hard delete" of files with the `--b2-hard-delete` +flag which permanently removes files on deletion instead of hiding +them. Old versions of files, where available, are visible using the `--b2-versions` flag.