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

Add switches for rclone cleanup #4884

Open
aetonsi opened this issue Dec 22, 2020 · 1 comment
Open

Add switches for rclone cleanup #4884

aetonsi opened this issue Dec 22, 2020 · 1 comment

Comments

@aetonsi
Copy link
Sponsor

aetonsi commented Dec 22, 2020

What is your current rclone version (output from rclone version)?

rclone v1.52.2-198-gaedc8623-fix-4395-list-bwlimit-beta
- os/arch: windows/amd64
- go version: go1.14.4

What problem are you are trying to solve?

rclone cleanup is currently described like this:

Clean up the remote if possible. Empty the trash or delete old file versions

I'd like to run rclone cleanup on a remote to just empty the trash, or just to remove versions history.

How do you think rclone should be changed to solve that?

A solution would be to add a couple of switches, something like this:
rclone cleanup --only-empty-trash
and
rclone cleanup --only-remove-file-versions

@aetonsi
Copy link
Sponsor Author

aetonsi commented Dec 22, 2020

Also, these switches should take into consideration the possible additional effects of #3964

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

2 participants