Source:
https://gist.github.com/gotbletu/630478ddf5b4e6ad6abd1a8b23918830
"
Example: | |
To save or restore image in client (Only that DRBL client will join, and its | |
local partitions is NOT mounted). NOTE!!! You should run the command in DRBL | |
client or you have to make sure the target device is NOT busy!. | |
To save all the data in local first IDE harddrive 'hda' as image 'IMAGE1', use | |
ntfsclone instead of partimage, and lzop compression (NOTE!!! You should run | |
the command in DRBL client or make sure hda is NOT busy/mounted!): | |
ocs-sr --use-ntfsclone -z3 savedisk IMAGE1 hda | |
To save the data in first and second partitions in local first IDE harddrive | |
'hda' as image 'IMAGE2', use ntfsclone instead of partimage, and lzop | |
compression (NOTE!!! You should run the command in DRBL client, or make sure | |
hda is NOT busy/mounted!): | |
ocs-sr --use-ntfsclone -z3 saveparts IMAGE2 "hda1 hda2" | |
To restore image IMAGE1 to local hda. grub-install will be run after cloning | |
(image IMAGE1 is already in DRBL server. NOTE!!! You should run the command | |
in DRBL client or make sure hda is NOT busy/mounted!): | |
ocs-sr -g auto restoredisk IMAGE1 hda | |
To restore image first and second partitions from IMAGE2 to local hda1 and | |
hda2. grub-install will be run after cloning (image IMAGE2 is already in DRBL | |
server. NOTE!!! You should run the command in DRBL client or make sure hda is | |
NOT busy/mounted!): | |
ocs-sr -g auto restoreparts IMAGE2 "hda1 hda2" | |
To save disk(s)/partitition(s) as an image or restore an image to | |
disk(s)/partitition(s) interactively, use: | |
ocs-sr -x " |
No comments:
Post a Comment