Breaking Changes:
- Minimun required
baseversion is 0.11.0
- Fixed critical bug when restoring from backup
- Added support to retain only the latest N backups
Migration from v1 to v2:
- v2 canister is not compatible with v1 canister so you need to rename backup state stable variable name in order to deploy v2 canister.
- Add
maxBackups : NattoBackupManageras a second argument (set to 0 to retain all backups)
Example:
- stable let backupState = Backup.init(null);
- let backupManager = Backup.BackupManager(backupState);
+ stable let backupStateV2 = Backup.init(null);
+ let backupManager = Backup.BackupManager(backupStateV2, {maxBackups = 10});