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

Thread: Help how to backup Ubuntu

  1. #1
    Join Date
    Apr 2010
    Beans
    1

    Help how to backup Ubuntu

    Excuse me Im newbie here...
    I want to ask how do I backup the OS we are already in the ubuntu install on a computer complete with all the packages, drivers, etc. into a CD / DVD so that later can be installed again to another computer,,
    because I want make backups my ubuntu and install to the other computer, and because there are already so many package2 installed,,
    how to do that, or there are other solutions??,,
    Please help me..
    thanks before ..

  2. #2
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Help how to backup Ubuntu

    You might want to check out remastersys

    http://www.geekconnection.org/remast...ersystool.html
    Forum DOs and DON'Ts
    Please use CODE tags - Including your email address in a post is not recommended
    Never assume that the information provided by Dr Google is up-to-date or relevant.

  3. #3
    Join Date
    Apr 2010
    Beans
    1

    Re: Help how to backup Ubuntu

    You can do back up by doing this step
    1.Type sudo su
    2.Go to root folder by type cd/
    3.type tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt -
    -exclude=/sys /

    The 'tar' part is, obviously, the program we're going to use.

    'cvpfz' are the options we give to tar, like 'create archive' (obviously),
    'preserve permissions'(to keep the same permissions on everything the same), and 'gzip' to keep the size down.

    Next, the name the archive is going to get. backup.tgz in our example.

    Next comes the root of the directory we want to backup. Since we want to backup everything; /

    Now come the directories we want to exclude. We don't want to backup everything since some dirs aren't very useful to include. Also make sure you don't include the file itself, or else you'll get weird results.
    You might also not want to include the /mnt folder if you have other partitions mounted there or you'll end up backing those up too. Also make sure you don't have anything mounted in /media (i.e. don't have any cd's or removable media mounted). Either that or exclude /media.

    2.Restore
    Type tar xvpfz backup.tgz -C /

    3.If your grub corrupted
    Go to this link:http://www.ubuntuforums.org/showthre...t=grub+restore

  4. #4
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    8,750

    Re: Help how to backup Ubuntu

    The best way to replicate systems is with Red Hat Kickstart for Debian - it is available somewhere - Google should find it. (This is one of the main reasons why large data centres and corporations use Red Hat).

    Another simple but slow method is with Clonezilla.

  5. #5
    Join Date
    May 2009
    Location
    Lancaster, PA
    Beans
    1,334
    Distro
    Ubuntu Development Release

    Re: Help how to backup Ubuntu

    My all time favorite backup method is using rsync.

    rsync is a terminal program that, once you make the initial backup, will only update the bytes that were changed since last run.

    The one liner that I use goes as follows
    Code:
    sudo rsync -av --progress --delete --log-file=/media/backup/$(date +%Y%m%d)_rsync.log --exclude "$HOME/.gvfs" --exclude "$HOME/.maple13" /home /media/backup
    the -av flag: 'a' means archive, or copy everything recursively preserving almost everything like permissions, ownership and time stamps. The 'v' is verbose, so it tells you what its doing, either in the terminal, in in this case, in the log file.

    --progress gives you more specific info about progress.

    --delete checks for changes between source and destination, and deletes any files at the destination that you've deleted at the source.

    --log-file saves a copy of the rsync result to a date-stamped file on my backup location.

    --exclude leaves out any files or directories you don't want copied. Some folders, like Maple were too big, and are easier just to re-install should something catastrophic happen.

    /home is the directory I want copied. /home copies the directory and its contents, /home/ would just copy the contents

    /media/backup is the separate drive. Change this to whatever your backup location is. I prefer to have it synced to a 4GB USB drive for convenience, but you could go to another drive, another partition, or even somewhere far away over SSH!

    In order to restore, you just reverse the last 2 locations, in my example /media/backup and /home. Boom. Done.
    Last edited by tom.swartz07; April 7th, 2010 at 10:07 PM.
    Java Guide Media support Flash x64 Grub2 Get Dropbox! My Look! RSync Twitter

    "Windows 7 was my idea"- I guess Microsoft enjoys copyright infringement?

  6. #6
    Join Date
    Jan 2008
    Beans
    4,757

    Re: Help how to backup Ubuntu

    Quote Originally Posted by lisati View Post
    You might want to check out remastersys

    http://www.geekconnection.org/remast...ersystool.html
    Remastersys is handy, I prefer to create one from scratch though (not for light hearted users, mind you).

    https://help.ubuntu.com/community/Li...ionFromScratch

    Some extra tips and tricks that aren't mentioned in the guide.
    To get a complete list of installed applications on your system.
    Code:
    dpkg --get-selections > packages.list
    Then copy the list generated into the chroot, and once inside run:
    Code:
    dpkg --clear-selections
    dpkg --set-selections < packages.list
    apt-get dselect-upgrade
    And that will install all applications that are present on your system inside the chroot, ready for packaging into a CD/DVD.
    (see the rest of the guide linked to find out how to do that)

    Regards
    Iain

  7. #7
    Join Date
    Sep 2006
    Beans
    156
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help how to backup Ubuntu

    Why not just do a clean install on the other machine, and just set it up? It's not that difficult, thats how I've always done it.
    Got Ubuntu?

    Linux User #436060 http://counter.li.org/

  8. #8
    Join Date
    Jun 2009
    Beans
    1,618
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Help how to backup Ubuntu

    Yes I wrote a bash script to do that, but with a large amount of data it takes longer to do it that way than to image the computer.

    +1 for clonezilla
    Comitas. Brevitas. Nulla ambitio.

  9. #9
    Join Date
    Nov 2007
    Location
    Okieville, USA
    Beans
    3,178
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help how to backup Ubuntu

    +1 for indygunfreak
    otherwise clonezilla
    MCP, A+/Linux+ Certified IT Technician
    System Specs | Dress up your "Super Button" FREE
    "If sometimes you can't be good, then be VERY good at being naughty!"

  10. #10
    Join Date
    Jan 2008
    Location
    Greece
    Beans
    Hidden!
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: Help how to backup Ubuntu

    i think thats what you want ...?
    ibuclaw already said that, sorry .

Page 1 of 2 12 LastLast

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
  •