Releases: nastyagrifon/amnezia-backup
v1.0.0
🚀 New Features
-
Consistent Backups: Added the ability to pause containers during the backup process to ensure filesystem consistency for active services. Enabled via
CONSISTENT_BACKUP=true. -
Automatic Restore Safety: The script now automatically creates a "pre-restore" safety snapshot before modifying any container data.
-
Robust Argument Parsing:
- Added support for flags:
-r(restore),-n(dry-run),-v(verbose), and-h(help) - Backup directory is now accepted as a positional argument
- Added support for flags:
-
Flexible Pathing: Backup directory now defaults to the current working directory (
PWD) if not specified, with full absolute path resolution. -
Packaging Support: Added automated packaging for
.deb,.rpm, andpacman(Arch Linux) distributions.
🛠 Improvements & Robustness
-
Container State Preservation: The script now detects if a container was running or stopped before a restore and returns it to that exact state afterward.
-
Enhanced Retention Policy:
- Separate retention counts for regular backups (
RETENTION_COUNT) and safety snapshots (ROLLBACK_RETENTION_COUNT) - Smarter cleanup logic that handles filenames with spaces safely
- Separate retention counts for regular backups (
-
Pre-flight Resource Checks:
- Disk Space: Verifies at least 100MB of free space is available before starting a backup
- Permissions: Validates Docker daemon connectivity at startup
-
Shell Robustness: Hardened path handling and backup file sorting to prevent issues in complex environments.
-
Dry-Run Mode: Added
-nflag to simulate backup/restore actions without touching the filesystem or Docker.
🐛 Bug Fixes
- Corrected logic in container name filtering to prevent accidental skips