After Clonezilla saves the hard disk to an image on an external drive,
the directory on the external drive contains a file named
"Info-saved-by-cmd.txt" which contains the command line and all the
arguments to repeat the process of backing the hard disk up to an image
on an external drive. That command line is "/usr/sbin/ocs-sr -q2 -c -j2
-z0 -i 4096 -sfsck -scs -senc -p poweroff savedisk 2022-02-17-02-img
sda". My question is, how can I run the file Info-saved-by-cmd.txt in
the next session of Clonezilla, or copy the contents of the file to the
command line, to run the backup without going through all the menus?
Steven Brown
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"My question is, how can I run the file Info-saved-by-cmd.txt in
the next session of Clonezilla, or copy the contents of the file to the
command line, to run the backup without going through all the menus?" -> Exactly. However, you have to mount the image repository first. With that, you can just run that command with root privilege, Given below is the example that you can switch to root, mount the image repository, then run Clonezilla restoring:
1. sudo -i
2. mount /dev/sdc1 /home/partimag
3. ocs-sr -q2 -c -j2 -z0 -i 4096 -sfsck -scs -senc -p poweroff savedisk 2022-02-17-02-img sda
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After Clonezilla saves the hard disk to an image on an external drive,
the directory on the external drive contains a file named
"Info-saved-by-cmd.txt" which contains the command line and all the
arguments to repeat the process of backing the hard disk up to an image
on an external drive. That command line is "/usr/sbin/ocs-sr -q2 -c -j2
-z0 -i 4096 -sfsck -scs -senc -p poweroff savedisk 2022-02-17-02-img
sda". My question is, how can I run the file Info-saved-by-cmd.txt in
the next session of Clonezilla, or copy the contents of the file to the
command line, to run the backup without going through all the menus?
Steven Brown
"My question is, how can I run the file Info-saved-by-cmd.txt in
the next session of Clonezilla, or copy the contents of the file to the
command line, to run the backup without going through all the menus?" -> Exactly. However, you have to mount the image repository first. With that, you can just run that command with root privilege, Given below is the example that you can switch to root, mount the image repository, then run Clonezilla restoring:
1. sudo -i
2. mount /dev/sdc1 /home/partimag
3. ocs-sr -q2 -c -j2 -z0 -i 4096 -sfsck -scs -senc -p poweroff savedisk 2022-02-17-02-img sda
Steven