Skip to content
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

AzCopy sync- Prevent Resyncing of Deleted Files in the Destination #2840

Open
HusoD opened this issue Oct 23, 2024 · 2 comments
Open

AzCopy sync- Prevent Resyncing of Deleted Files in the Destination #2840

HusoD opened this issue Oct 23, 2024 · 2 comments

Comments

@HusoD
Copy link

HusoD commented Oct 23, 2024

#There is no option for avoiding resyncing deleted files in destination with AzCopy sync.

@tanyasethi-msft
Copy link
Member

Hi @HusoD , could you please give some more information on this issue for us to look into further?
Is this for 1 iteration of sync or in multiple iterations?

@HusoD
Copy link
Author

HusoD commented Oct 23, 2024

Hi @HusoD, could you please provide more information on this issue so we can investigate it further? Is this for one iteration of sync or multiple iterations?

This is more like a feature request. I would like to request a new feature in AzCopy that allows users to avoid resyncing files that have been manually deleted from the destination after an initial sync. Currently, the sync command ensures the destination matches the source exactly, including resyncing files that were previously deleted in the destination.

Proposed Solution:
Add a flag (e.g., --skip-deleted) that tracks and prevents files deleted in the destination from being resynced in subsequent sync operations, even if those files still exist in the source. This would be especially useful in scenarios where users want to maintain control over deletions in the destination while continuing to sync new or modified files from the source. It could be for one or multiple iterations.

Use Case:
This feature would be valuable for users who want to perform an initial sync but prefer to manually manage file deletions in the destination, without those deleted files being restored during future syncs.

Thank you for considering this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants