fbrettnich / hcloud-snapshot-as-backup

Hetzner Cloud - Automatic Snapshots as Backups for more flexibility
https://hub.docker.com/r/fbrettnich/hcloud-snapshot-as-backup
MIT License
111 stars 19 forks source link

[Feature] Add human readable datetime format for snapshot names #6

Closed ToshY closed 2 years ago

ToshY commented 2 years ago

Problem

Currently you can name the snapshot with for example %name%-%timestamp% format. This will result in something like new-server-1667887200. The problem is, timestamps are not really that human friendly, as you just can't directly see what the date and time is when the snapshot was created.

Proposed

Allow user specified custom datetime format (using for example strftime), and fallback to timestamp as default to avoid breaking change.

fbrettnich commented 2 years ago

If you are in the Cloud Console, you can see the full date directly there But we can add a new variable like %date% for that

Do you plan to open a pull request?

image

ToshY commented 2 years ago

I totally missed that 🤦‍♂️ Thanks for taking the time to point that out.

I will close the issue as I don't see a particular need for it now.

fbrettnich commented 2 years ago

@ToshY added %date% and %time% placeholder

ToshY commented 2 years ago

@fbrettnich Thank you for taking the effort 👍 I'm going to use them immediately 😄