b2: Add b2-version-at flag to show file versions at time

Uses b2_list_file_versions to retrieve all file versions, and returns
the one that was active at the specified time

This is especially useful in combination with other backup tools, such
as restic, which may use rclone as a backend.
This commit is contained in:
SwazRGB
2022-03-15 04:55:20 +01:00
committed by Nick Craig-Wood
parent a8cd18faf3
commit 4cebade95d
2 changed files with 37 additions and 2 deletions

View File

@ -173,6 +173,11 @@ the file instead of hiding it.
Old versions of files, where available, are visible using the
`--b2-versions` flag.
It is also possible to view a bucket as it was at a certain point in time,
using the `--b2-version-at` flag. This will show the file versions as they
were at that time, showing files that have been deleted afterwards, and
hiding files that were created since.
If you wish to remove all the old versions then you can use the
`rclone cleanup remote:bucket` command which will delete all the old
versions of files, leaving the current ones intact. You can also