Results 1 to 4 of 4

Thread: Backup before upgrade

Threaded View

  1. #1
    Join Date
    Jun 2010
    Beans
    49

    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

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
  •