Hi,
I have OS on a physical drive. I already backup and restore. it works . I would like to restore just only one partition which is sda3. here is my script
1) mount /dev/sdb2 /home/partimag" ocs_live_run="ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff restoreparts test sda3 and another script..which one is correct
2) mount /dev/sdb2 /home/partimag" ocs_live_run="ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff -f restoreparts sda3 test sda3
Thanks
Normally it should be:
ocs-sr -b -g auto -e1 auto -e2 -j2 -k -p poweroff restoreparts test sda3
If your image name is "test', and the destination partition you want to restore is sda3.
I would suggest you follow the TUI to select the appropriate requirements, then it will give you a green command which you can use in your script.
Steven
Thanks for help
Related
Support Requests: #184
Steven,
If I don’t want to split the image I put -i 0 or without it ?
Thanks
Last edit: Steven Shiau 2025-04-27
By default it won't split the image. Hence you can do that without "-i 0". Of course, doing that still works.
Steven
Thanks for your explain