nextcloud / nextcloud/files_retention

Prevent deleting all files

Open
#1,002 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement
Dominant language
JavaScript
Stars
42
Forks
24
Avg merge
2d 19h
Merged PRs (30d)
42

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature request

There will be a good option to prevent delete all files. I use this for backups also so if something is going worng and backup doesn't upload to nextcloud anymore than after x days all files will be deleted.
So an option to keep last X files instead of x days will be verry good.

Which Nextcloud Version are you currently using: (see administration page)
32
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Yes this can delete all of my backup files.
Describe the solution you'd like
A clear and concise description of what you want to happen.
To have also option, keep last x files instead just days

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
delete all opf my backup files
Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the feature request in issue #1002 and inspect the repository to find the existing retention-by-days entry point. Define and implement the option to keep the last X backup files, ensuring an interrupted upload cannot result in every backup being deleted; done means the retention behavior is covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.