Menu

Backup from Remote Image

Help
traxxus
2009-02-11
2013-04-05
  • traxxus

    traxxus - 2009-02-11

    Is it possible to use Clonezilla Live in concert with an SSH Server to boot a PC from say USB stick and then to pull the image file across a network from an SSH server?  I have played with Clonezilla live, and I have seen the SSH server option.  Is there a way to automate this connectivity?  If so, how?  Is there a walkthough that I am missing?

    Thanks,
    Traxxus

     
    • traxxus

      traxxus - 2009-02-11

      I meant RESTORE from remote image, but the forum will not let me change the title.

       
      • Steven Shiau

        Steven Shiau - 2009-02-12

        You have to write a script to do that.
        Please refer to the advanced mode:
        http://clonezilla.org/clonezilla-live/#make_custom_clonezilla_live

         
        • traxxus

          traxxus - 2009-02-12

          Steven Thank you,

          I have read that, but what was not clear is  what I need to do to make clonezilla goto an SSH server and grab the image, vs carrying it around on the USB stick or CD/DVD.

          Is there anywhere that this question is answered?

           
          • Steven Shiau

            Steven Shiau - 2009-02-13

            /opt/drbl/samples/custom-ocs-1 is a similar example, the only difference is it's for samba server, not ssh server. It will be very easy for you to modify that and make your own customized clonezilla live.

            Steven.

             
    • traxxus

      traxxus - 2009-02-14

      Thank you again Steven, you have been extremely helpful and I really appreciate that.

      So I took a disk image of a laptop and placed it under /home/partimag/ on my SSH server.  I also modified the custom-ocs-l script to use SSH instead of Samba. 

      Everything works brilliantly.

      I want to polish this a bit more before I bring it to my boss as a solution.  What can I do to automate when it asked me for the IP address of the SSH server, the path for the image, and the password when connecting the SSHFS?  What script would that be that I would need to modify.  When I read the advanced scripting area, I'm rather lost on being able to script this.

      Thank you!

       
      • Steven Shiau

        Steven Shiau - 2009-02-14

        Traxxus,
        It's /opt/drbl/sbin/prep-ocsroot
        Especially the function "do_mount_ssh_server".

        Good luck!

        Steven.

         
    • traxxus

      traxxus - 2009-02-23

      Steven,

      I am wondering if I can steal some more of your wisdom.  I unsquashed the filesystem.squashfs file and then modified the prep-ocsroot file to custom script the SSH server login ( accept for entering the password.)  

      I then successfully made a new filesystem.squashfs and copied it onto the USB stick, replacing the filesystem squash that was already there.  Whenever I tried to reboot with the stick, it was unable to explode the filesystem file.  I am not sure why. 

      Is there a better way to do this?  Are there any special flags for making the squash file.  Sorry, Im kinda a linux newbie.  I have been learning it for the last 6 months and feel as though I have barely scratched the surface.  LOL.

      Thanks,
      Traxxus.

       
      • Steven Shiau

        Steven Shiau - 2009-02-23

        Hi Traxxus. 
        Actually Clonezilla live is created from Debian live (live-helper), so I am not so sure about the details about mksquashfs when live helper using it. In live helper, I feed mksquash options "-b 65536 -e boot".
        How did you run your mksquashfs ? What are the results if you run:
        file filesystem.squashfs
        Are they the same before and after you create it ?

         

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.