Added version 3

Go port of the script
This commit is contained in:
phil committed 2026-11-05 16:28:52 +00:00
1 parent cab5d0cfda
commit 70e1b1cc6e
4 files changed
+528

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# ha-backup
Go port of `home_assistant_backup.sh`. Uses the same `home_assistant_backup.conf`.
## Build
```
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o ha-backup .
```
Cross-compile examples:
```
GOOS=linux GOARCH=amd64 go build -o ha-backup-linux-amd64 .
GOOS=linux GOARCH=arm64 go build -o ha-backup-linux-arm64 . # Raspberry Pi / ARM NAS
```
## Run
#### looks for home_assistant_backup.conf next to the binary, then in cwd
```
./ha-backup
```
```
./ha-backup -config /path/to.conf
```
Requires `ssh` and `scp` on the machine running it. `jq` and `yq` are no longer needed.