Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: how to backup and restore OpenSUSE system?

  1. #1

    Default how to backup and restore OpenSUSE system?

    Hi all,

    Can you please tell me the way to backup OpenSUSE system (root partition) and then I can restore it from OpenSUSE Live CD (restore grub2 also)?

    In YaST, there's System Backup and Restore but I do not know how to use them.

    Thanks!
    Sometimes I forget to tell information about version, desktop.
    I'm using OpenSUSE 13.1, KDE 4.11

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: how to backup and restore OpenSUSE system?

    On 2013-11-28 14:16, n00bvn wrote:
    >
    > Hi all,
    >
    > Can you please tell me the way to backup OpenSUSE system (root
    > partition) and then I can restore it from OpenSUSE Live CD (restore
    > grub2 also)?


    Each person has a different method.

    Me, I create images of the system partitions with dd, and rsync copies
    of home and data partition. I use a big external hard disk, with a small
    openSUSE bootable partition on it, and a large encrypted data partition.

    For backing up grub, you need to ensure that the partition holding it is
    imaged. If it is on the MBR, you need to backup several additional
    sectors (perhaps 64).

    You also need a method to backup and restore the partition table
    including the logical partitions; for instance:

    Code:
    sfdisk /dev/hdd -O hdd-partition-sectors.save
    sfdisk /dev/hdd -I hdd-partition-sectors.save
    (from sfdisk manual)


    > In YaST, there's System Backup and Restore but I do not know how to use
    > them.


    I've never been very comfortable with them.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  3. #3

    Default Re: how to backup and restore OpenSUSE system?

    Quote Originally Posted by n00bvn View Post
    Hi all,

    Can you please tell me the way to backup OpenSUSE system (root partition) and then I can restore it from OpenSUSE Live CD (restore grub2 also)?

    In YaST, there's System Backup and Restore but I do not know how to use them.

    Thanks!
    Hello,

    you can try use Clonezilla Live CD/USB image, it's imaging solution like Acronis and Symantec disk imaging software, it's able to backup whole disk or single partition including boot record.

    But you need some space on backup hd/usb or external drive including network drive (NFS.SMB).

    Thank you

    Regards
    Czeslaw M.

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: how to backup and restore OpenSUSE system?

    On 2013-11-28 14:56, cmruk wrote:

    > you can try use Clonezilla Live CD/USB image, it's imaging solution like
    > Acronis and Symantec disk imaging software, it's able to backup whole
    > disk or single partition including boot record.


    Last time I looked, grub was not backed up, but instead recreated on the
    target disk. That's the reason I do not use it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  5. #5

    Default Re: how to backup and restore OpenSUSE system?

    Hi,

    i am using stable releases - 2.2.0-31 and everything works perfect, restoring this backup bring me back exactly the same working system with Grub2, with LVM2 partition.

    Code:
    tarting /usr/sbin/ocs-sr at 2013-11-24 23:00:13 UTC...
    Clonezilla image dir: /home/partimag
    Shutting down the Logical Volume Manager
      Shutting Down logical volume: /dev/vg_system/opt 
      Shutting Down logical volume: /dev/vg_system/root 
      Shutting Down logical volume: /dev/vg_system/skole+backup 
      Shutting Down logical volume: /dev/vg_system/skole+tjener+home0 
      Shutting Down logical volume: /dev/vg_system/swap_1 
      Shutting Down logical volume: /dev/vg_system/usr 
      Shutting Down logical volume: /dev/vg_system/var 
      Shutting Down logical volume: /dev/vg_system/var+opt+ltsp+swapfiles 
      Shutting Down logical volume: /dev/vg_system/var+spool+squid 
      Shutting Down volume group: vg_system 
    Finished Shutting down the Logical Volume Manager
    The selected devices: sda
    ng for data partition(s)...
    Searching for swap partition(s)...
    The data partition to be saved:   sda1 sda5
    The swap partition to be saved:  
    The selected devices: sda1 sda5
    The following step is to save the hard disk/partition(s) on this machine as an image:
    .........
    .........
    -> "/home/partimag/2013-11-24-23-img-skole-linux".
    Shutting down the Logical Volume Manager
      Shutting Down volume group: vg_system 
    Finished Shutting down the Logical Volume Manager
    Saving block devices info in /home/partimag/2013-11-24-23-img-skole-linux/blkdev.list...
    Checking the integrity of partition table in the disk /dev/sda... 
    Reading the partition table for /dev/sda...RETVAL=0
    *****************************************************.
    The first partition of disk /dev/sda starts at 2048.
    Saving the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by:
    dd if=/dev/sda of=/home/partimag/2013-11-24-23-img-skole-linux/sda-hidden-data-after-mbr skip=1 bs=512 count=2047
    2047+0 records in
    2047+0 records out
    1048064 bytes (1.0 MB) copied, 0.0344756 s, 30.4 MB/s
    *****************************************************.
    Saving the MBR data for sda...
    1+0 records in
    1+0 records out
    512 bytes (512 B) copied, 0.00946608 s, 54.1 kB/s
    Starting saving /dev/sda1 as /home/partimag/2013-11-24-23-img-skole-linux/sda1.XXX...
    /dev/sda1 filesystem: ext4.
    *****************************************************.
    seems i have a luck

    thanks

    Regards
    Czeslaw M.

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: how to backup and restore OpenSUSE system?

    On 2013-11-28 15:46, cmruk wrote:
    >
    > Hi,
    >
    > i am using *'stable releases - 2.2.0-31'
    > (http://clonezilla.org/downloads/down...?branch=stable) *and
    > everything works perfect, restoring this backup bring me back exactly
    > the same working system with Grub2, with LVM2 partition.



    After restoring, grub2 complains "error: no argument specified". Why?


    It says:

    +++·······························
    By default when an image is restored, Clonezilla will try to re-run
    grub-install from the restored GNU/Linux. If it fails, e.g. you are
    using i686 version of Clonezilla live, while the restored GNU/Linux is
    amd64 (x86-64) OS, it will fail. Then Clonezilla will use the grub2
    comes with Clonezilla live to run grub-install. The version could be
    imcompatible.
    ·······························++-

    Thus grub is not backed up, it is recreated. That is an absolute no-no
    for me.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  7. #7

    Default Re: how to backup and restore OpenSUSE system?

    I keep /home on it's own drive and back it up with rsync and also put personal tweaks and edits from elsewhere in the filesystem on Dropbox.

    I *don't* back up anything else because simply reinstalling, without formatting /home, and then pulling over the tweaks from Dropbox is so simple. (This does mean I need to retain the original install image, which I usually burn to a DVD. Don't count on being about to download a new install image if you manage to break things.)

    (When I think about it, I copy the Dropbox tweaks to a local backup, but I typically never keep that uptodate.)

  8. #8

    Default Re: how to backup and restore OpenSUSE system?

    I tried CloneZilla, but the Live CD run supper slow and there's many I/O error.
    Sometimes I forget to tell information about version, desktop.
    I'm using OpenSUSE 13.1, KDE 4.11

  9. #9
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    4,029

    Default Re: how to backup and restore OpenSUSE system?

    Quote Originally Posted by n00bvn View Post
    Hi all,

    Can you please tell me the way to backup OpenSUSE system (root partition) and then I can restore it from OpenSUSE Live CD (restore grub2 also)?

    In YaST, there's System Backup and Restore but I do not know how to use them.

    Thanks!
    I use Clonezilla on a USB stick. Occasionally, I use it on a boot CD.

    So far, it has never failed me.

    I ran into a glitch, though, when I tried to recover after a failed upgrade attempt to 13.1, but that had to do with my partition scheme.

    Some kind of mix-up between the MBR, the super block of the extended partition, and the PBR of the first logical partition in that extended partition, which is where my SUSE root was.

    I might have avoided the problem if I had GRUB2 installed to the MBR, but I no longer needed an extended partition, so I changed to booting from a primary partition, which is more stable.

    Thus, I never bothered testing the MBR install of GRUB2.

    The "boot from extended partition" risk is mentioned somewhere (GRUB documentation? SUSE documentation? GNU documentation? SUSE installation notes?), but I don't recall where and haven't yet bothered to hunt it down again.

    Clonezilla works well, don't be afraid to use the Advanced options (even though it might sound scary by saying it is for "experts").

    Just read each option very carefully and think about it before choosing to use the option or not. Mostly, your best experience will be to stick to the default options in that dialogue, but with one or two tweaks.

    When you get to the part where it gives you compression choices (gzip, bzip2, etc.), stay with the default. It makes a slightly larger file than some of the others, but gives the least headaches and runs in a fraction of the time.

    Think, half an hour or an hour instead of 7 hours or so for the others.

    Good luck,
    -fb

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: how to backup and restore OpenSUSE system?

    On 2013-11-29 04:56, n00bvn wrote:
    >
    > I tried CloneZilla, but the Live CD run supper slow and there's many I/O
    > error.


    Maybe bad burn.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •