Announcement

Collapse
No announcement yet.

howto backup the system?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    howto backup the system?

    hi @all,

    after 10 years on gentoo i now switched to kubuntu (mainly cause crossdev-avr is bugged/wontfix on gentoo and.. well i got too old for big compile sessions on system updates).
    i installed kubuntu with no problems, used system and user-home encryption, got rid of packages i dont need, installed packages i need and so on.
    yesterday, after i updated kernel (+headers) as recommendet by muon, something went wrong and a reboot dropped me to the initrd rescue system… okok, phew! i still can boot from an older kernel - but what if i could'nt? how do i do a backup of my system to restore a broken system?

    on gentoo i had a "simple" backup script which "-o bind" mounted my / partition to a temp mountpoint, and from there i was able to tar the whole system. i then used rsync with --link-dest to save the tar and my home folder to an external disk. that was quite sufficient as i was able to restore complete systems several times.
    now how do i do that on a system-encrypted kubuntu system? how do i bare metal restore the encryption settings (lvm, dmcrypt?) and the system (home is *no* problem as my old backup strategy should work here)?

    suggestions/links welcome

    #2
    gößbrühe,
    Have a look at :-
    http://www.geekconnection.org/remastersys/ Makes a live DVD using a script. Works very well. (I don't think it will work with encryption, certainly can't compress 2TB !).
    http://clonezilla.org/ I am sure you have heard of Clonezilla.
    Last edited by weha; Feb 02, 2013, 01:33 AM. Reason: Won't work with encryted disks.

    Comment


      #3
      hi weha,

      i'll have a look at remastersys, thou i doubt clonezilla will do the job well because of the encrypted root fs.
      Code:
         Name       Flags     Part Type  FS Type        [Label]       Size (MB)
       ------------------------------------------------------------------------
                               Primary   Free Space                        1.05*
         sda1       Boot       Primary   ext2                            254.81*
                               Pri/Log   Free Space                        1.05*
         sda5       NC         Logical   crypto_LUKS                 2000141.95*
                               Pri/Log   Free Space                        0.10*
      ~2tb of uncompressible garbage are'nt exactly fun to back up

      but… before sending this post i googled "clonezilla luks" aaand bingo, cryptsetup in fact IS part of clonezilla live. nice and thank you

      Comment


        #4
        Originally posted by gößbrühe View Post
        on gentoo i had a "simple" backup script which "-o bind" mounted my / partition to a temp mountpoint, and from there i was able to tar the whole system. i then used rsync with --link-dest to save the tar and my home folder to an external disk. that was quite sufficient as i was able to restore complete systems several times.
        now how do i do that on a system-encrypted kubuntu system? how do i bare metal restore the encryption settings (lvm, dmcrypt?) and the system (home is *no* problem as my old backup strategy should work here)?
        I don't see why you cannot use that method on kubuntu, even with an encrypted hdd as the data will not be encrypted once it is mounted so you can just tar it up like you did before. Restoring becomes slightly harder as you have to set up the encrypted partitions first your self then install grub to the mbr but at least you have access to the data.

        Comment


          #5
          There is also relinux. I have not tried my backup yet, but it was easy for someone who hasn't been at this very long.

          Sent from my ADR6425LVW using Tapatalk 2
          Kubuntu version 12.04
          KDE version 4.8.5
          Computer HP dv5
          Cpu dual core 2 gig
          Gpu Nvidia GeForce 9200m
          Ram 4 gigs
          Display twinview Laptop, and 32 inch Vizio

          Comment

          Working...
          X