none
AzCopy & The Archive Attribute

    Question

  • AzCopy is great. But.. Why is there no way to remove or mark an archived file? It supports copying files with the "archive" attribute, but not setting that attribute to indicate it is safe to delete. This necessitates a far more complicated "can I delete this file now?" script where a terribly simple one would do if AzCopy cleared the archive attribute (or otherwise flagged a file) when instructed to do so. It has been a hole in the tools feature set for many, many years and if the source was open there would have been a solution long ago.

    Tuesday, January 17, 2017 2:36 PM

All replies

  • Greetings James,


    Thank you for contacting Microsoft forums. We are pleased to answer your query.


    AzCopy is now built on our open source Data Movement Library 
    https://github.com/Azure/azure-storage-net-data-movement. All of AzCopy’s transfer logic can be found there.

    Meanwhile, you can request for any specific feature here https://feedback.azure.com/forums/217298-storage.


    I hope that the reply will assist you in getting your query addressed. In case you require further assistance, please do reply to the thread as we are always available to your queries.


    Regards.

    Md. Shihab

    **********************************************************************

    Please remember to click "Mark as Answer" on the post that helps you as this can be beneficial to other community members reading the thread. And vote as helpful.

    • Proposed as answer by Md Shihab Wednesday, January 25, 2017 7:21 AM
    Wednesday, January 18, 2017 7:28 AM
  • did you ever figure out a script to safely delete files that were archived after copied?
    Wednesday, September 5, 2018 4:38 AM
  • AzCopy currently don't support to safely delete files that were archived, it focuses on transfer blobs from source to destination. You might can write your own code to achieve this.

    -------------------------------------------------------------------------------------------------

    If this answer was helpful, click “Mark as Answer” or Up-Vote. To provide additional feedback on your forum experience, click here

    Saturday, September 15, 2018 5:37 PM
    Moderator