azure - AzCopy advanced pattern matching / last x blobs -
i working on backup solution our blob storage. 1 of requirements being able partial backup (will used test environments), i'd take last ~1000 blobs uploaded storage , copy other storage account. our blobs named numbers 1, 2, ..., 756479,...
i cannot see parameter 'take last x blobs' in azcopy..
i have tried specify /pattern parameter, not seem support /pattern: 756* not copy blob named 756479. works prefix, without *, match unwanted blobs, such 756, 7560, 75612...
could clarify whether real regex pattern matching possible in azcopy, or how solve issue?
no, azcopy doesn't support regex pattern matching when source blob, blob service supports prefix blob query. , unfortunately, there isn't option in azcopy specify "last" n blobs.
if implement incremental backup mechanism, perhaps can check whether option /xo fits requirement:
excludes older source resource. resource not copied if source resource older destination.
for further details of azcopy, please refer http://aka.ms/azcopy.
Comments
Post a Comment