Menu

How to run "Info-saved-by-cmd.txt"?

Help
2022-02-19
2022-02-19
  • Steven A Brown

    Steven A Brown - 2022-02-19

    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

     
  • Steven Shiau

    Steven Shiau - 2022-02-19

    "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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.