Azure / blobxfer

Azure Storage transfer tool and data movement library
MIT License
151 stars 38 forks source link

Removing data after upload #130

Closed robinaly closed 2 years ago

robinaly commented 3 years ago

Feature Request Description

We are working on devices with relatively little storage. Here it would be useful to be able to remove successfully transferred files to save long syncing times and to ensure that the local storage does not overflow. One particular challenge will be that some of the files might be still actively written and hence shouldn't be unlinked. I am not sure whether this is easy to find out whether a file is open.

Describe Preferred Solution

A clear and concise description of what you want to happen.

I would like a move operation that is similar to sync but removes the files from local storage after being investigated.

Describe Alternatives Considered

A clear and concise description of any alternative solutions or features you've considered.

For some cases, there might be a workaround so that open files do not have to be considered.

Additional Context

Add any other context or screenshots about the feature request here.

Nothing comes to mind.

Thanks for building this software.

alfpark commented 2 years ago

Thanks for the suggestion, however, this operation would be outside of the scope of this tool. You can create a composite script that invokes blobxfer (like a full sync) and assuming success, you can follow up with deleting in your own script.