Page 41 of 138 FirstFirst ... 3139404142435191 ... LastLast
Results 401 to 410 of 1375

Thread: Howto: Backup and restore your system!

  1. #401
    Join Date
    Sep 2007
    Location
    010101010101001101000001
    Beans
    858
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by Nightwalker07 View Post
    ooo, that sounds superb! Hope it works, I'll give it a go tomorrow, Thanks!
    no problem

  2. #402
    Join Date
    Sep 2007
    Location
    010101010101001101000001
    Beans
    858
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by indosupremacy View Post
    bro...i have done exactly like what this tread said about back up...but,while i'm trying to restore it,it seem that i have trouble ....
    after i try to make mkdir other directory i excluded etc: /proc ..., /lost+found...and other directory that i have excluded .it said...the directory u want is already exist...
    any help...?
    thanks broooo
    are you making sure that you are using "--exclude"
    That should work

  3. #403
    Join Date
    Sep 2007
    Beans
    59

    Arrow Re: Howto: Backup and restore your system!

    Quote Originally Posted by shane2peru View Post
    Let us know how it goes for you!!! We are waiting to hear!
    WARNING - Probably best randomers don't come along and repeat this... there's no need to wipe your system if its working, especially not if the backup fails afterwards. -PriceChild
    My exact testing steps:
    1. Freshly Installed 7.10 (Gusty-Gibbon-i386-desktop) on a Laptop.
    2. Copied test data to system (600MB / 1,400 files) to both my home dir and desktop. And then installed KTron application (just a small-game to test if it works later).
    3. Opened the Terminal and ran the following:
    Code:
    cd /
    sudo tar cvpzf backup.tgz --exclude=/etc/fstab --exclude=/boot --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /
    4. I then inserted a USB flash-drive & backed up the 'backup.tgz' and removed the drive.
    5. As part of the test I intended to serverly damage the filesystem, so again, still at root on the terminal I ran the following to destroy the system (WARNING: Dont do this if you value the system or it's data):
    Code:
    sudo rm -fr *
    6. Manually powered-off the system.
    7. Powered on system and booted with the ubuntu-7.10 disc, and performed a new, fresh installation.
    8. Once booted into my new installation I then inserted my USB flash-drive and proceeded to extract/restore my system/files back onto the system drive:
    Code:
    sudo tar xvpfz /media/USB-DRIVE/backup.tgz -C /
    9. Restarted the system and all was restored fine. System & files restored and working.
    Last edited by Nightwalker07; November 2nd, 2007 at 12:09 AM.

  4. #404
    Join Date
    Oct 2007
    Beans
    28

    Re: Howto: Backup and restore your system!

    for u my brooooo
    now it actually work....
    my fault on the last tried ist that i wasn't umount /media/sdax....
    after i umount it...there's no problem at all....

    offcourse theres trouble after kernel upgrade...but this thing make me back healthy again..
    this thing is the simplest thing to back up....

  5. #405
    Join Date
    Jan 2006
    Beans
    153

    Re: Howto: Backup and restore your system!

    ok. I have separate root and /home partitions I made the backup.tgz but I made it in /home. si instead of
    Code:
    sudo tar cvpzf backup.tgz --exclude=/etc/fstab --exclude=/boot --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /
    I ran
    Code:
    sudo tar cvpzf /home/backup.tgz --exclude=/etc/fstab --exclude=/boot --exclude=/proc --exclude=/lost+found --exclude=/home/backup.tgz --exclude=/mnt --exclude=/sys /
    but the problem is that the file generated is bigger that the / partition.

    so do I extract home and save it as another file. then add it after I restore the backup? how do the separate partitions work when backing up? I'm pretty new to backing up and restoring stuff...

  6. #406
    Join Date
    Jan 2006
    Beans
    153

    Re: Howto: Backup and restore your system!

    nevermind. it worked I just extracted from home to root and it worked fine!

    Thank you for the tutorial! You saved my ***. My gutsy upgrade failed in the middle of installing and I backed up with your method right before I started that step.

  7. #407
    Join Date
    Sep 2007
    Beans
    59

    Re: Howto: Backup and restore your system!

    Glad you got it sorted and the backup worked for you!

  8. #408
    Join Date
    May 2007
    Beans
    43

    Re: Howto: Backup and restore your system!

    Why do you --exclude=/etc/fstab ?
    Is fstab generated automatically, I didn't think so.. ?

  9. #409
    Join Date
    Aug 2005
    Beans
    380

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by Nightwalker07 View Post
    9. Restarted the system and all was restored fine. System & files restored and working.
    To some extent you were lucky. If you had installed gcc instead of KTron in your test, then you would have found that the "--exclude /sys" option in the backup script leads to the exclusion of such things as /usr/included/sys and everything else with "/sys" somewhere in the path. After your restore, gcc would have been broken because of missing header files. I posted earlier about this.

    You need to add the --anchored option to tar to avoid this behavior.

    (But even then, I've been bitten so many times by the unexpected behavior of tar's various options, that I've stopped using it for my backups.)

  10. #410
    Join Date
    Sep 2007
    Beans
    59

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by mannheim View Post
    ...You need to add the --anchored option to tar to avoid this behavior.

    (But even then, I've been bitten so many times by the unexpected behavior of tar's various options, that I've stopped using it for my backups.)
    Interesting, thanks. Im new to tar myself, I'll check that out.

Page 41 of 138 FirstFirst ... 3139404142435191 ... 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
  •