Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/ns-plug/files/remote-backup
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ case "$cmd" in
exit_error "No file specified"
fi
curl $curl_args $base_url --upload-file $file
rc=$?
# Temporary dual-send to new my.nethesis.it via the translation
# proxy, same pattern used by send-heartbeat / send-inventory.
# To be removed once the migration is complete.
if [ "$TYPE" = "enterprise" ]; then
curl $curl_args -X POST \
-H "Content-Type: application/octet-stream" \
-H "X-Filename: $(basename "$file")" \
--data-binary "@$file" https://my.nethesis.it/proxy/backup >/dev/null || :
fi
exit $rc
;;
delete)
file=$2
Expand Down
Loading