This repository contains a PowerShell workflow that:
- Resolves Calibre and backup paths based on the current hostname.
- Downloads the latest Calibre Portable installer.
- Stops STRATO HiDrive to avoid sync/file-lock issues.
- Creates a split 7z backup of the Calibre Portable folder.
- Installs the update.
- Restarts HiDrive.
- Deletes old backup sets and keeps only the newest configured amount.
Calibre Update Backup.ps1Main script for backup, update, HiDrive stop/start, and retention cleanup.
- Windows PowerShell
- 7-Zip installed at
C:\Program Files\7-Zip\7z.exe(default path used by script) - Access to the target backup and Calibre Portable directories defined in the script
- STRATO HiDrive client (optional but supported and handled by the script)
- Host-specific paths are configured in:
Set-CalibreBackupPathSet-CalibreFolderPath
- Retention count is controlled by
$CalibreBackupRetention. - Installer is downloaded to
$env:TEMP\calibre-portable-installer.exe.
.
|-- Legacy/
| `-- Calibre Update Backup.bat
|-- Calibre Update Backup.ps1
|-- .gitignore
|-- LICENSE.md
`-- README.md
Legacy/Historical scripts kept for reference only; not actively maintained.Legacy/Calibre Update Backup.batOlder batch-file implementation.Calibre Update Backup.ps1Current maintained script..gitignoreGit ignore rules for local/runtime artifacts.LICENSE.mdMIT License file.README.mdProject documentation.
All files under Legacy/ are retained for reference and migration history. Use Calibre Update Backup.ps1 for current operations.
This project is licensed under the MIT License. You are free to use and modify the code as long as you include the original copyright notice and credit the author.