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

Flexible backup path #448

Open
saidul opened this issue Sep 13, 2024 · 0 comments
Open

Flexible backup path #448

saidul opened this issue Sep 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@saidul
Copy link

saidul commented Sep 13, 2024

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

@saidul saidul added the enhancement New feature or request label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant