hassio-google-drive-backup icon indicating copy to clipboard operation
hassio-google-drive-backup copied to clipboard

Default backup template name can have issue with external GDrive sync tool

Open loomyr opened this issue 4 years ago • 1 comments

It's not a real issue, but a suggestion regarding the default name used in the text field "backup template name"

By default, the template suggestion is using the following syntax : {type} Backup {year}-{month}-{day} {hr24}:{min}:{sec}

I faced an issue today trying to integrate a replication with a Local Backup NAS (Synology with Cloud Sync) and GDrive , in order to downlad locally all HA snapshot coming from your integration. But filenames were not accepted and file didn't synchronize with my NAS.

Unfortunately even if the ":" are an accepted by Linux-Unix / Google, it might have issues using this in a platform like Windows. And even if it allowed in linux its alway a bit anoying in command line to manipulate file that need escape char like ":" or spaces.

Why not using a default name template without "-" or spaces like : {type}_Backup_{year}-{month}-{day}_{hr24}-{min}-{sec}.

It would maybe save time for users that are not familiar with these inter-platform specific syntax using a universal one and lets the possibility of user that don't care about that to change it when they setup parameters.

I'm maybe a bit old school guy with naming convention/syntax, sorry for that ;-)

Anyway your integration is very cool and useful, thanks a lot for the maintenance and the evolutions of the tool.

loomyr avatar Sep 08 '21 17:09 loomyr

+1. Ran into this exact issue after loading up this addon; backups created and uploaded, but Synology CloudSync not downloading to NAS. I changed my filename to this, which fixed the issue:

{type}_{year}-{month}-{day}_{hr24}{min}h Full_2021-12-12_1903h.tar

I don't think I'll ever make two backups in the same minute, so works for me. :)

Sumtin avatar Dec 12 '21 19:12 Sumtin