Results 1 to 4 of 4

Thread: Backup before upgrade

  1. #1
    Join Date
    Jun 2010
    Beans
    57

    Backup before upgrade

    I originally wrote in this thread but was asked to open a new one.

    The thread explains how to make a system backup before upgrade.

    First one should clean the packages a bit:
    Code:
    sudo apt-get autoremove
    sudo apt-get autoclean
    (I furthermore suggest to delete some old kernel files from /boot)

    Than comes the archive magic:
    Code:
    sudo tar -cv --one-file-system --exclude=/home/* --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* -f /home/system-backup.tar /* && sudo chown `whoami`:`whoami` /home/system-backup.tar
    (fast/no compression - big backup file)
    or
    Code:
    sudo tar -cvz --one-file-system --exclude=/home/* --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* -f /home/system-backup.tar.gz /* && sudo chown `whoami`:`whoami` /home/system-backup.tar.gz
    (medium compression speed - medium file size)
    or
    Code:
    sudo tar -cvj --one-file-system --exclude=/home/* --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* -f /home/system-backup.tar.bz2 /* && sudo chown `whoami`:`whoami` /home/system-backup.tar.bz2
    (slow compression - small file)

    I am thinking about upgradig my Ubuntu. I remember that I had a lot of issues getting the tv-receiver and my graphic card running.

    My questions are whether this method will also backup my working kernel and drivers and how do I recover my system from the archive?
    Last edited by xxlray; November 14th, 2012 at 10:28 PM. Reason: typo

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Backup before upgrade

    I do not use tar, it is old school, and many now use other tools.

    https://help.ubuntu.com/community/BackupYourSystem/TAR

    discussion of alternatives/strategy backups
    https://help.ubuntu.com/community/BackupYourSystem

    Full image backups
    http://clonezilla.org/
    Free Imaging software - CloneZilla & PartImage - Tutorial
    http://www.dedoimedo.com/computers/f..._software.html
    http://www.geekconnection.org/remastersys/
    http://www.psychocats.net/ubuntu/remastersys
    Tar backup script:
    https://help.ubuntu.com/11.04/server...llscripts.html
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Feb 2012
    Location
    Athens/Greece
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Backup before upgrade

    +1 for Clonezilla

  4. #4
    Join Date
    Jun 2010
    Beans
    57

    Re: Backup before upgrade

    Thank you. So the answer is "yes it will back up driver stuff" and "use tar -xvpzf nameof.tar.gz -C / to recover". Note that I was just asking for a one time backup solution and not for a regular one. In my opinion tar is just fine for this issue. (I already have a regular backup solution for the stuff in my home folder)

Bookmarks

Posting Permissions

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