jcwillox / hass-auto-backup

🗃️ Improved Backup Service for Home Assistant that can Automatically Remove Backups and Supports Generational Backup Schemes.
https://jcwillox.github.io/hass-auto-backup
MIT License
366 stars 27 forks source link

Ability to set backup name as filename #60

Closed l-t-k closed 2 years ago

l-t-k commented 2 years ago

I would like to have an option to change the filename on disk of each backup. Right now we can set a custom name for each backup, but this does not change the filename on disk.

I know your other add-on (hassio-rclone-backup) have this option (#30 ), but I'm using my own setup to move my backups away from the host: Syncthing syncs my backups with my desktop pc. It would be very useful if I receive backups on my desktop with explanatory filenames instead of the slug.

Oh, and this add-on is awesome :) I really like it, this enhancement will make it perfect for me

jcwillox commented 2 years ago

Thanks! Sorry I didn't see this earlier, but that's actually not possible, integrations (like Auto Backup) literally do not have access to the /backup folder on your system, meaning the only way we can interact with them is via the Home Assistant Supervisor API. This means we can't change the name of the backups on the disk, among many other frustrating limitations. This is not the case for addons (like hassio-rclone-backup), which can request direct access to the backup folder.

It would be very useful if I receive backups on my desktop with explanatory filenames instead of the slug.

I agree Home Assistant should really use more friendly names by default when writing backups to the filesystem.