wyng-backup
wyng-backup copied to clipboard
Create automated tests
A good testing regime could include the following:
- Perform an initial backup
- Verify volume
- Perform an incremental backup
- Verify volume
- Prune first backup
- Verify volume
- Diff volume (cross-check with source vol data)
The main variables for creating test permutations:
- Local storage: Thin LVM, Reflink
- Dest storage: file:, ssh:, qubes:, qubes-ssh:
- Security: Unencrypted, Encrypted
Other variables can be added as needed.
Fault tolerance:
Some methods for interfering with or damaging archives where there are expected recovery responses.
Changing program_name in the code could allow the test data set to be created under a different base folder name without interfering with real-life backup data.
Other areas I recommend testing:
- Deliberately tamper with the archive, and check that the tampering is detected on restore.
- Attempt to roll back the archive to an earlier version, and test that this is detected.