Commit 9473670
committed
feat(ns-plug): dual-send backup to my-new proxy
Adds a second upload to https://my.nethesis.it/proxy/backup after
remote-backup finishes its upload to backupd.nethesis.it. Same
transitional pattern already used by send-heartbeat and send-inventory:
the proxy accepts the existing system_id:secret Basic Auth pair and
translates it into the my-new system_key:system_secret on its way to
the new collect endpoint, so no UCI or registration change is needed
on the appliance.
Gated to enterprise subscriptions via `TYPE = enterprise` to stay in
sync with the other dual-send scripts. Best-effort (`|| :`): a proxy
outage does not block the primary upload that already completed
against backupd, and the md5 marker is still updated so the same
backup is not re-uploaded the next night.
X-Filename is propagated so the user-facing filename ends up as S3
object metadata on my-new.
Refs: NethServer/my#82 NethServer/my#831 parent 03728c8 commit 9473670
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
| |||
32 | 45 | | |
33 | 46 | | |
34 | 47 | | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
0 commit comments