Page 13 of 138 FirstFirst ... 311121314152363113 ... LastLast
Results 121 to 130 of 1375

Thread: Howto: Backup and restore your system!

  1. #121
    Join Date
    Dec 2005
    Location
    Midlands, United Kingdom
    Beans
    22
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by TrumpetMan258
    I backed up my home directory, but when I try to open the archive, I get this error message:


    I know that I typed the backup command into ternimal correctly. How come I can't open the archive?
    Something went wrong with the creation or copying of the backup somewhere/how.

    It is telling you it cannot read the file because it is shorter than it should be.

    Did you get any errors whilst making the backup?

    Is the file over 2Gb? if so what filesystem was it put on/copied to? IIRC FAT32 has a filesize limit of 2Gb/file.

    Kelly

  2. #122
    Join Date
    Sep 2005
    Location
    Cedar Rapids, IA, USA
    Beans
    545
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Howto: Backup and restore your system!

    I have this method set up in a shell script to back up my / and /home separately, but the exclude doesn't work anymore (it did with Hoary).

    I tried changing the order in the tar command, but that still doesn't work.

    I'm including the code for / (/home is pretty much identical, with the exception of different excludes)

    Code:
    #!/bin/sh
    
    # This is a shell script to back up the root directory of my 
    # computer and move it to an externally mounted harddisk for
    # storage
    #
    # To restore root system backup, use resbkrt
    
    # Get current directory
    mycurrdir=`pwd`
    
    # Change to /media/hd?
    cd /media/usbdisk/backups
    
    # Clean out /var/cache/apt/archives
    echo "Cleaning apt-get cache"
    sudo apt-get clean
    
    # Exclude variables
    ex1="--exclude=/home --exclude=/proc --exclude=/lost+found"
    ex2="--exclude=/mnt --exclude=/sys"
    ex3="--exclude=/tmp --exclude=/media"
    #ex4="--exclude=/var/cache/apt/archives"
    
    # Create .tgz backup file as superuser
    # Don't need to include /home -> to be done in a different script
    echo "Creating backup archive"
    sudo tar cvpzf rootbackup-`date +%F`.tgz $ex1 $ex2 $ex3 / 
    
    # Go back to original directory
    cd $mycurrdir
    #399784 | Ubuntu User #287
    *** If you're going to program, install the damn build-essential package ***
    There is no such thing as Ubuntu specific programming
    Save the electrons - if you quote, trim!

  3. #123
    Join Date
    Sep 2005
    Location
    Cedar Rapids, IA, USA
    Beans
    545
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Howto: Backup and restore your system!

    This is definately odd as my script now works with the excludes.
    #399784 | Ubuntu User #287
    *** If you're going to program, install the damn build-essential package ***
    There is no such thing as Ubuntu specific programming
    Save the electrons - if you quote, trim!

  4. #124
    Join Date
    Aug 2005
    Location
    On the Internet / Southea
    Beans
    104
    Distro
    Ubuntu 9.10 Karmic Koala

    Lightbulb Re: Howto: Backup and restore your system!

    Quote Originally Posted by cRoMo
    EDIT: There are few mistakens in the command line invoking tar to backup system, that are wrote in the first post. For some reason on certain versions of tar excluding of directories doesn't work. After my search on the google groups I found that these paths should look like that:

    tar cvpfz backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

    The only change is that the path that shows what should be backuped is at the end.

    This change applies to bzip2 "version" respectively.

    EDIT2: There's one more thing, this time about restoring the backup. Although there is an 'p' option given for preserving files modes, there is no option given to preserve same owner as of original files. Without it all of the files unpacked from the archive will become owned by the user who made unpacking. To prevent this we should add --same-owner option to the command line when unpacking. This, in most cases, will bring out some errors - that's when we are non-root user and want to set file owner to root. To prevent this, whe should run tar with sudo tool.
    I believe this should be included as a footnote in the original post. The --exclude stumped me for a bit. Nice HOWTO.
    Quad Core Q6600 2.4Ghz / 1066FSB;XFX nForce 680i LT SLI Socket 775 MBoard; GeForce 8500GT 256MB;OCZ 700W GameXstream PS;Seagate 500GB SATA HD 7200/16MB/SATA-3G;4GB Corsair TWINX PC6400 DDR2 800MHz EPP RAM

  5. #125
    Join Date
    Jan 2006
    Beans
    2

    Re: Howto: Backup and restore your system!

    i'm a complete linux idiot but i hate windows enough to keep trying this. could somebody give us a revised version of the 2 commands from the first post above so that they exclude whatever dev folders there are that waste space or cause problems? it would be a great help! t hanks!!!!!!!!!!

  6. #126
    Join Date
    Aug 2005
    Location
    Århus, DenmarK
    Beans
    1,478
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Howto: Backup and restore your system!

    I have installed mondo from the repos!

    How do I run it?

  7. #127
    Join Date
    Jan 2005
    Location
    Calgary AB
    Beans
    126
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by daller
    I have installed mondo from the repos!

    How do I run it?
    Personally, I would "do a search and check out the guides" .
    I Googled "mondo linux" and found http://www.mondorescue.org

  8. #128
    Join Date
    Jan 2006
    Beans
    Hidden!

    Re: Howto: Backup and restore your system!

    Ok, I had a system that was Dual Boot WinXP and Ubuntu. I made my backup of Ubuntu following these directions and burned it to DVD. I then did the following:

    1. Deleted all partitions
    2. Reinstalled Ubuntu 5.10
    3. Copied tar image to /
    4. Restored the image using the command in the first post
    5. Rebooted

    Or I should say I tried. It just sat at >Grub

    I had no idea what to do. So I deleted the partitions and reinstalled Ubuntu 5.10 again.

    That is where I am now? Should I try the restore again? I didn't recreate the directores that were excluded but I don't think I needed to as they should have been created by the fresh installation right?
    I like mac?

  9. #129
    Join Date
    Oct 2005
    Location
    Peru, South America
    Beans
    1,486
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Howto: Backup and restore your system!

    Ok, first thanks for the HOWTO it was a great and very extremely helpful guide! I had to completely re-install Ubuntu. I then restored by backup that was over 3GB! It worked like a charm twice. (The first time I forgot to use sudo ) so it took about an hour to restore my home partition, and then got to the root, and well, didn't have write permissions. The second time worked like a charm.
    Now, my only problem is that my little sound icon by the clock has an ugly x over it. I do have sound, but it gives me this error when I click on it,
    Code:
     The volume control did not find any elements and/or devices to control. This means either that you don't have the right GStreamer plugins installed, or that you don't have a sound card configured.
    
    You can remove the volume control from the panel by right-clicking the speaker icon on the panel and selecting "Remove From Panel" from the menu.
    If I right click on it and select open I get this error,
    Code:
    Registry is not present or it is corrupted, please update it by running gst-register
    When I attempt to run gst-register it in the terminal I get this
    Code:
    bash: gst-register: command not found
    Any ideas? Oh, also I didn't have this problem before my backup. Thanks!

    Shane

  10. #130
    Join Date
    Jul 2005
    Beans
    381

    Re: Howto: Backup and restore your system!

    I had the same problem, gst-register worked though and solved it. gst-register is part of libgstreamer0.8-0 Just run synaptic and install it and you should be sorted.

Page 13 of 138 FirstFirst ... 311121314152363113 ... LastLast

Tags for this Thread

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
  •