Clonezilla-SysRescCD
Getting backups on Samba
08/02/2009 - v 3.1.0

Copyright: © 2007-2009, Spiros Georgaras <sng@hellug.gr>Single page
Last update: 23/12/2009Printable version
 
RSS news feed
 

Intro [^]

What if you don't have a spare local disk or partition or a USB disk? How will you be able to get a backup of your system? Well, if your PC is on the same LAN with another PC running Windows (or linux), you can use Samba to save your image file on that remote PC (which we will call Samba server from now on).

Using Samba you will be able to mount a Windows share resource (or Samba share resource), from within Clonezilla Live, and save the image file there. Then you can boot that PC using SystemRescueCD and create a restore DVD.

In this page I will demonstrate the creation of an image file by getting a backup of my Windows partition (/dev/hda1). The image file will be save in my Samba server which is my laptop (ip: 10.0.0.2, Windows share resource name: data).

What is Samba? [^]

We read at http://us1.samba.org/samba/:

Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients. Samba is freely available, unlike other SMB/CIFS implementations, and allows for interoperability between Linux/Unix servers and Windows-based clients.

Samba is software that can be run on a platform other than Microsoft Windows, for example, UNIX, Linux, IBM System 390, OpenVMS, and other operating systems. Samba uses the TCP/IP protocol that is installed on the host server. When correctly configured, it allows that host to interact with a Microsoft Windows client or server as if it is a Windows file and print server.

Gathering info [^]

Before you can use this approach to get a backup, you have to get some info about the Samba server.

The Samba server I have used for this example was my laptop, so I already knew most of the info required. If this is not the case for you, just ask the owner, user or system admin.

The info required is:

  1. The IP address of the Samba server
  2. The domain on the Samba server
    This may exist if your PC is connected to a larger LAN (a corporation network, for example). In my case this is empty.
  3. The user name and password you can use
  4. The directory on the Samba server you can use to save your backup
    This is the name of the Windows share resource (Samba share resource) as it is known in the network, which is not necessarily the same as the local directory name. The user whose account will be used to login to the Samba server, must have write permission to this directory.

Getting the backup [^]

If you're fine with US keymap and English language (available languages are English, Spanish, French, Italian, Japanese and Chinese [both simplified and traditional]) or don't mind editing the boot parameters, just select Clonezilla Live at the starting screen and press ENTER. When the system comes up, it will load the program that will preform the backup.

If you need to change these settings, go to the Getting backups page for instructions .

Screen "Start Clonezilla" [^]

I select "Start Clonezilla" and press ENTER.

Screen "Clonezilla" [^]

I select "device-image" and press ENTER.

Screen "Mount clonezilla image directory" [^]

In this screen I can select the way the image file directory will be saved. Available options are local directory, remote directory through ssh, samba or nfs and skip, to use the previously used directory. More info about the image file can be found at section "About the Image file".

I select "samba server" and press ENTER.

Screen "Mount Samba Server" [^]

This is where I have to enter the IP address of my Samba server.

I type "10.0.0.2" and press ENTER.

Screen "Mount Samba Server" (second time) [^]

This is where I have to enter the account (user) name on my Samba server.

I type "spiros" and press ENTER.

Screen "Mount Samba Server" (third time) [^]

This is where I have to enter the domain name on my Samba server.

I select "Cancel" and press ENTER, as there is no domain in my LAN. If there is a domain in your network, you have to type its name (something like my_company.com) and press ENTER.

Screen "Mount Samba Server" (fourth time) [^]

This is where I have to enter the directory name on my Samba server, in which the image file will be saved.

I type "/data" and press ENTER.

At this point I will be asked for the password for user spiros. I will be able to continue only after entering it correctly.

Screen "Clonezilla - Opensource Clone System (OCS)" [^]

I select Beginner mode to accept the default backup options. If you select Expert mode, you can choose the options yourself. More details can be found here.

Screen "Clonezilla: Select mode" [^]

Here I can select the desired operation. Available options are:

savedisk
    Save entire disk to image

restoredisk
    Restore entire disk from image

saveparts
    Save partition to image

restoreparts
    Restore partition from image

recovery-iso-zip
    Create an automated restore CD/DVD/USB drive

I select "saveparts" and press ENTER.

Screen "Clonezilla - Opensource Clone System (OCS) | Mode: saveparts" [^]

This is the name of the image file. You can insert anything you like, as long as it makes sence to you, so that you can distinguish the image file afterwards.

I insert "win_img" and press ENTER.

Next screen [^]

Here I can select the partition that will be backed up.

I select "( ) hda1        ntfs" by pressing SPACE and press ENTER, and ENTER again.

Then a message is displayed asking for confirmation in order to continue. I just press y, and the backup procedure begins.

Rebooting the system [^]

When the backup is done, I get the following:

(0) Poweroff
(1) Reboot
(2) Enter command line prompt
(3) Start over
[2]

Then I press ENTER and get to the shell. I execute the commands:

sudo su -
cd
umount -a
reboot


[Valid RSS]   Valid CSS!  Valid HTML 4.01 Transitional