Flexible backup path
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 37.4k
- Forks
- 3k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 73
Description
What problem will this feature address?
Currently backup prefix is a fixed string. Can not backup to a path like backups/2024/09/01/xyz.tar.gz
Describe the solution you'd like
- Ability to define backup path including filename
- Ability to use date in backup path.
Describe alternatives you've considered
Default variable can be provided which will make this flexible. Variable can be identified by { } or [ ]. For example {month} or [month]
Path example:
- backups/{year}/{month}/{project}/{service}_{date}.tar.gz
Useful variables:
- project
- service
- container_name
- date
- month_digit
- month_name
- year_2_digit
- year_4_digit
- day_digit
- day_name
- date
Alternatively date related variables can be parsed and accept date formatting string for libraries like date-fns. That way we can just have {date:yyyy} or {date:MM}
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No implementation files or tests are named. Start by locating the backup-prefix configuration and the code that generates backup paths, then define how the requested project, service, and date variables should expand. Done means configurable paths can include filenames and date-based directories, with coverage for the supported placeholders.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100