-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bucket to bucket "sync" of all versions #166
Comments
As |
I agree that this would be a useful feature. Not sure of the priority. What, exactly, would this feature do? It will not be able to replicate the upload times of the original files; they upload times will be the times the files were copied. It can preserve the metadata, including the file modification time. It can preserve the order of the versions of a file. Because the upload times of the file versions in the destination bucket are different, the actions of lifecycle rules will be different in the source and destination buckets. |
This would, among other things, let users of old buckets clone them into new ones so that they could use the S3 interface with their data. The server-side times will change, yes, but sync uses modification time. It seems that to enable this we need just one or two functions (to iterate over every file version in the bucket instead of just the most recent version of every file in that bucket) (respecting filters that we already have). We might specifically not copy the lifecycle rules to force the user to re-apply them appropriately. |
Currently, the SDK is able to synchronize files between two B2 buckets (implemented in #165), but it synchronizes only the latest versions as the whole idea of synchronization works on files and not on file versions.
We may consider adding a feature to be able to sync every version of the files. It may not by
b2 sync
and something else, or a specialb2 sync
mode.The text was updated successfully, but these errors were encountered: