Delete old backups shell command error

Interestingly it has been running faultlessly for me since I changed the trigger time from ‘04:00:00’ to ‘06:17:15’. Or maybe it’s because I’ve been doing a lot of config work and restarting HA nearly every day.

hmmm I wonder if there is something going on with duckdns or home assistant at night that I can’t find. I’ve been restarting daily to clear the logs and left the time at 03:00:00 with errors every day. more info in the stacktrace but nothing helpful other than it can’t connect to the domain :frowning: I’m gonna update my execution time also and see what happens. Thanks for letting me know it’s working for you after you adjusted the execution time. I’m still going to update the gist to use aiohttp and asyncio to keep in line with home assistant.

Go figure right as I said that https://downforeveryoneorjustme.com/duckdns.org and it’s down right now.

To test if it’s been something with duckdns all along I’ve updated my url to be my local ip and see if i can get it to work.

I couldn’t get the local IP address to work. HA wants to use https and the certificate is for duckdns not the IP address. If you get this working I’d be interested to know how.

So I got the local IP address working and it’s consistently been working at ‘03:00:00’. The only thing I don’t like is I had to tell it to ignore the ssl cert verification. I have updated the gist to show how I achieved this in a dynamic fashion. Next step is to convert it to the new pattern of using an init file.

Thanks for the update. FYI, still been working fine for me with duckDNS.

1 Like

I might try and switch back just to see. Thanks for the update on your side. I apologize it took me so long to get something working.

No drama. It is working :slight_smile:

With the new [Integration structure] in 0.92 (https://developers.home-assistant.io/blog/2019/04/12/new-integration-structure.html) this integration produces this warning:

Unable to find services.yaml for the clean_up_backups_service integration

It would be nice an help to migrate to the new structure.

1 Like

Warning or Error?

I just upgraded. Will see what happens when it runs later tonight.

It is just a warning with 0.92

1 Like

Looks like my backup ran but I cant tell if the clean-up service is working because I’m nowhere near my maximum number of files (20) yet as I moved hosts recently.

I have updated the gist to match the new integration patterns. I have also added a description of how it should be organized. Sorry about the delay in getting this updated I finally got the chance to upgrade today.

2 Likes

Thanks for the reminded I have updated the gist

@junja430 Thank you very much!

Hey @junja430 your custom component has been working perfectly.

Any chance of supporting HACS?

I’m actually working on converting it to one. Just haven’t had much time lately hopefully this weekend.

1 Like

Repo has been created to support HACS. Here is the repo I have tested this on my instance manually. Just need to ensure the automation continues to work. Once I know it works I might try to get it added to the default list.

1 Like

@tom_l My automation is still working. Is your automation still functioning after using the HACS plugin? If so I’ll work on checking to see if they are willing to have it in the default list.

I’m not yet using it under hacs.

I’ll give it a go and let you know tomorrow.

1 Like