This feature is particularly useful for selective recovery when dealing with large datasets or when only a few critical files need to be restored.
To restore specific files or folders using Mystic, you can utilize the --include
flag within the restore command. This allows you to specify either a file prefix or an exact path, ensuring that only the desired files or directories are retrieved without restoring the entire backup. This feature is particularly useful for selective recovery when dealing with large datasets or when only a few critical files need to be restored.
Below is the command syntax for executing a targeted restore operation:
COMMAND: restore SNAPSHOT_ID --target TARGET_PATH --include PREFIX_PATH
e.g. restore 792bbf2b --target / --include /mnt/data/scripts/clamav_scan.sh
1 # COMMAND="restore 792bbf2b --target / --include /mnt/data/scripts/clamav_scan.sh"
2
3 repository 256b0401 opened successfully, password is correct
4 restoring <Snapshot 792bbf2b of [/root/test] at 2025-03-26 18:53:12.140553654 +0000 UTC by root@dev-bzwcollabora>
to /
5