Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Binary sensor when Backup creation is finished #12

Open
jonofe opened this issue Aug 19, 2024 · 0 comments
Open

Feature request: Binary sensor when Backup creation is finished #12

jonofe opened this issue Aug 19, 2024 · 0 comments

Comments

@jonofe
Copy link

jonofe commented Aug 19, 2024

This addon is absolutely great, because it leaves the normal HA Backup procedure untouched and does not create the known issued with the empty backup overview in the menu Settings=>System=>Backups.

As I'm using MariaDB I would like have two triggers/flags:

  1. Backup creation has been started (local creation of the tar archive in /backup)
  2. Backup remote copy has been started (sftp to the remote location)

I think there is already a binary sensor indicating whether backup is running. In some cases it switched only to true, when the remote copy (step 2) was started, but next time it switched already to true, when step 1 was started. I did not really understand, when this binary sensore ist changing state. I really love it.

But I'm still looking for a small extension to support my 3-2-1 Backup process (3 copies on at least 2 media and 1 externally stored)

My Backup process is as follows:

  1. Check whether Backup is not running
  2. Write Lock on MariaDB tables (SQL: flush tables with read lock)
  3. Start Remote Backup Addon
  4. When Backup creation is done (here I would need a binary sensor), Unlock MariaDB tables (SQL: unlock tables)
  5. Remote Backup then continues to sftp the created backup to remote location
  6. Start Addon USB-Backup to copy the backup to an locally connected USB device

I'm only missing the binary sensor in step 4. Currently I'm using a 10 minute delay as my backup creation need ~5 minutes.

Maybe I missed something and I can already identify, when backup creation is finished.
Any help would be very much appreciated.

Thanks in advance!

Best regards
André

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant