danielwelch / hassio-dropbox-sync

Back up your Hass.io snapshots and other local files to Dropbox
Apache License 2.0
132 stars 37 forks source link

upload different file extensions #2

Closed nmsoares closed 6 years ago

nmsoares commented 6 years ago

Hi, is there a way to use your add-on not only to upload TAR files but also other file extensions ? Thanks!

danielwelch commented 6 years ago

What's your use case for this? It's definitely possible. As of now, the add-on only mounts the backup directory and there typically isn't anything in there but .tar files generated by the snapshot process (as far as I know).

nmsoares commented 6 years ago

Cool. I’m saving some jpg’s files from my cameras and saving them to the Share folder. I would love if these files could be uploaded to dropbox. If so, I could delete them from the local folder so that it doesn’t take space.

nmsoares commented 6 years ago

@danielwelch Can you help adding an option for selecting file extensions ? Thanks!

danielwelch commented 6 years ago

@nmsoares I'm working on this now, should have a way to do this soon.

The way I'm implementing it exposes an option filetypes that will allow you to specify extensions to match in the following format: "png|jpg|gif" The add-on will then scan the /share folder for files with those extensions and upload them to dropbox at $output.

Does that sound good?

danielwelch commented 6 years ago

@nmsoares this is available as described above in the upcoming v1.2.0 release. Should be available today.