-
Notifications
You must be signed in to change notification settings - Fork 6
duplicati_backup_status.ps1
Corey Watson edited this page Dec 1, 2025
·
1 revision
Monitors Duplicati backup jobs via the local API.
Monitors Duplicati backup jobs via the local API. Authenticates to the Duplicati web service, queries configured backups, and reports their status including metrics like backup size, file count, and next scheduled run.
Monitors Duplicati backup jobs via the local API. Authenticates to the Duplicati web service, queries configured backups, and reports their status including metrics like backup size, file count, and next scheduled run.
- Windows OS
- Duplicati 2.0+ installed and running
- Web UI password set (or empty for no password)
-
$duplicatiPassword: Password for Duplicati Web UI (leave empty if no password) -
$duplicatiPort: Port where Duplicati runs (default 8200)
- Validates input parameters
- Authenticates to Duplicati API
- Queries all configured backup jobs
- Checks status of each job (Success, Warning, Error, etc.)
- Reports metrics: size, file count, progress, next schedule
- Exits with code 1 if any job has failed
- Password is stored in script - modify per deployment
- No secrets logged to output
- 0 = Success (all jobs healthy)
- 1 = Failure (service down or jobs failed)
[ INPUT VALIDATION ]
--------------------------------------------------------------
Duplicati URL : http://localhost:8200
Inputs validated successfully
[ AUTHENTICATION ]
--------------------------------------------------------------
Authenticating to Duplicati API...
Authentication successful
[ BACKUP STATUS ]
--------------------------------------------------------------
Job: Daily Backup
Status : Success
Last Run : 2024-12-01 02:00
Size : 45.2 GB
Files : 125,432
Next : 2024-12-02 02:00
[ FINAL STATUS ]
--------------------------------------------------------------
Result : SUCCESS
All 1 backup job(s) healthy
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps
- View Script Source
- Scripts - Back to script index