add progress bar http upload
This commit is contained in:
@@ -75,10 +75,12 @@ transfer_to_remote() {
|
||||
|
||||
echo "Server disponibile (HTTP $SERVER_CHECK)"
|
||||
echo "Trasferimento backup su server remoto via HTTP..."
|
||||
echo ""
|
||||
|
||||
# Upload del file via curl
|
||||
RESPONSE=$(curl -X POST "$UPLOAD_URL" -F "file=@$file" -s)
|
||||
# Upload del file via curl con barra di progresso
|
||||
RESPONSE=$(curl -X POST "$UPLOAD_URL" -F "file=@$file" -#)
|
||||
|
||||
echo ""
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Errore durante il trasferimento del backup"
|
||||
send_gotify_notification "⚠️ Backup Parziale" "Data: $DATE_FORMAT\nBackup di $DOMAIN completato ma trasferimento remoto fallito" 6
|
||||
|
||||
Reference in New Issue
Block a user