Page 45 of 138 FirstFirst ... 3543444546475595 ... LastLast
Results 441 to 450 of 1375

Thread: Howto: Backup and restore your system!

  1. #441

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by tech9 View Post
    I know this is not recommended, but have you tried backing up as root?
    hold on i'm confused... i actually do back everything up as root, and then restore as root. am i missing something? (so glad i was able to pull my home directory out of the archive... whew i'm alive)

    thanks,
    ephman

  2. #442
    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 ephman View Post
    hold on i'm confused... i actually do back everything up as root, and then restore as root. am i missing something? (so glad i was able to pull my home directory out of the archive... whew i'm alive)

    thanks,
    ephman
    you can back everything up as user by using root privilege sudo -i

  3. #443
    Join Date
    Nov 2007
    Beans
    505
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Howto: Backup and restore your system!

    Thanks for the how-to. Now I have another question, though:

    I am trying to create a script to run in cron which will automate weekly backups using this method, name them using the date in the filenames, and delete any backup files older than 30 days. This is what I have:

    Code:
    #!/bin/sh
    
    tar cvpzf /path/to/backup-$(date +"%b-%d-%y").tgz --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/media --exclude=/sys --exclude=/home /
    
    find /path/to/backup/*.tgz -mtime +30 -exec rm {} \;
    
    exit
    I'm new to shell scripting. If I schedule this in crontab as root, will it do what I'm expecting it to?
    Last edited by thelatinist; November 20th, 2007 at 08:52 PM. Reason: corrected error in code

  4. #444
    Join Date
    Nov 2007
    Beans
    82
    Distro
    Ubuntu

    Re: Howto: Backup and restore your system!

    thanks dear

  5. #445
    Join Date
    Nov 2007
    Beans
    1

    Re: Howto: Backup and restore your system!

    How do i create the backup.tgz file directly on another hard drive that i have mounted?

  6. #446
    Join Date
    Oct 2007
    Beans
    832
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by jonasl View Post
    How do i create the backup.tgz file directly on another hard drive that i have mounted?
    cd to the location you want the back-up file to be placed and then run your tar command.

    example:

    cd /media/some_disk_name

    then run your tar command

  7. #447
    Join Date
    Dec 2006
    Beans
    10
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Howto: Backup and restore your system!

    :'(
    i used the method described in the first posting to save my ubuntu 7.10 settings and all before start fiddling with the ATI drivers from hell... i was not able to get either the binary drivers NOR the open source version to work correctly with my radeon 9600. no direct rendering. slowslow desktop. bla...

    using the backup worked the first couple of times. i got my system back to working normal and all.
    then something went horribly wrong and even after applying the backup the desktop was slow, unresponsive and simply not usable. so i figured i could just do a fresh install and load the backup over that....

    worked fine until i rebooted the system after applying the backup... stops booting with a warning like "bla bla drive with UUID bla bla doesnt exist" and ends at a cryptic emergency command line. i did not change drives. used the same partitions as the previous install.... :'((

    is there anything i can do to get my backup working again? *sob sob*

  8. #448
    Join Date
    Sep 2007
    Beans
    57

    Arrow Re: Howto: Backup and restore your system!

    When restoring your system from your backup (using this method) I recommend that you do a fresh reinstall of the OS and then extract the backup.

    Regards UUID stuff, see this post:
    http://ubuntuforums.org/showthread.p...95#post3860695

    Did you not exclude the /boot and fstab ?

  9. #449
    Join Date
    Dec 2006
    Beans
    10
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Howto: Backup and restore your system!

    thanks for the reply! i excluded /proc /mnt /sys and /media (all my windows partitions are mounted there so no need to include them in the ubuntu backup)

    i did a fresh install from the live CD.... i figured that maybe i have to remove the /dev/ directory from the backup archive? i am no linux pro. but i am pretty used to work with computers and figuring stuff out. but that is a bit over my head. hehe... (just like the fact that activating the restricted binary drivers from ATI renders my gnome unusable instantly .... even though my card is in the compatible list)

    the exact message that comes up while booting ubuntu (grub is working. ubuntu progress bar is starting, but standing still. switching to a different console shows the message):

    check root=bootarg cat /proc/cmdline
    or missing modules, devices: cat /proc/modules ls /dev
    Alert! /dev/disk/by-uuid/75b.............




    probably the best idea would be to just take the time and just rebuild my system from scratch. but then i would like to have a backup option that really works the way it should be before i try to fiddle with those pesky ati drivers again...
    Last edited by decideci; December 1st, 2007 at 01:07 PM.

  10. #450
    Join Date
    Sep 2007
    Beans
    57

    Lightbulb Re: Howto: Backup and restore your system!

    Im pretty sure the problem is you didn't exclude your /boot which will store the UUID of your drive/partition, this is different with each install I think. Im new to all this myself!

    When you take make your tar backup you need to exclude the /boot and all its information, because some of it unique, with it excluded you can do a fresh reinstall, extract the backup and then it will work. Im pretty sure thats the deal, anyone else got advice?

Page 45 of 138 FirstFirst ... 3543444546475595 ... 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
  •