Page 97 of 138 FirstFirst ... 47879596979899107 ... LastLast
Results 961 to 970 of 1375

Thread: Howto: Backup and restore your system!

  1. #961
    Join Date
    Nov 2008
    Beans
    109

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by newb85 View Post
    I think I've found the source of my problem. Apparently, I was including more exclusions in the command line than the tar command would take. (Apparently, there is a limit, although a brief internet search did not yield the exact number.) However, by stashing all these exclusions in a text file and using the -X command, I met with success.

    Heliode, it might be a good idea to add a note to your tutorial about this.

    Hey would you mind giving the whole command line you have there for this text file option?


    Btw is there a file size limit with the tar method?
    Last edited by kartal; October 30th, 2009 at 07:28 PM.

  2. #962
    Join Date
    May 2009
    Location
    Indiana
    Beans
    1,757
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Howto: Backup and restore your system!

    Quote Originally Posted by kartal View Post
    Hey would you mind giving the whole command line you have there for this text file option?
    I created a file which I called "exclusions.list" in the root (/) directory:
    /proc/*
    /mnt/*
    /media/*
    /lost+found/*

    The command line was then:
    tar -cvj --exclude-from=exclusions.list -f backup.tar.bzip /
    or simply:
    tar -cvjX exclusions.list -f backup.tar.bzip /
    * The extension .list was only for my reference. You may make it anything or omit it altogether. You may also place the file anywhere and simply include the path, such as:

    tar -cvjX /home/[username]/exclusions.list -f backup.tar.bzip /
    Quote Originally Posted by kartal View Post
    Btw is there a file size limit with the tar method?
    I don't know of any.
    Last edited by newb85; October 30th, 2009 at 11:15 PM. Reason: clarification

  3. #963
    Join Date
    Nov 2008
    Beans
    109

    Re: Howto: Backup and restore your system!

    Thank you so much. I managed to back up this way. Although I went ahead with Remastersys solution as the final method for myself.

  4. #964
    Join Date
    Nov 2008
    Location
    Wiltshire
    Beans
    544
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Howto: Backup and restore your system!

    As this thread is so long, I'm sorry but I've no idea whether this question has already been asked, but ......

    Is there any reason why one has to use tar via the CLI instead of running Archive Manager as root?

    The benefit of using the GUI interface of Archive Manager seem rather obvious to me:
    • One doesn't have the potential problem caused by spelling errors. For example, if you mistype media (as mediia, for example) in the exclude list, you'll end up creating an enormous file containing all data on all disks connected, including your Windows C:\ drive in most people's configurations.
    • It is also much easier to create the backup file somewhere other than your root partition, which might be quite full.
    • It is better protection from total disk failure if your backup file is on a completely different disk to the data being backed up.


    Something I'm not sure about though is how one preserves permissions using Archive Manager.
    Laptop1: Fujitsu-Siemens Amilo Pi 2515, 2Gb RAM, 160Gb HDD (2 x NTFS parts), Window$ Vista Home Premium
    USB HDD (usually connected to Laptop1): 80Gb total, 2Gb Linux-swap, 20Gb Linux-root (Ubuntu 10.10), 3.6Gb Linux-home, 50Gb NTFS

  5. #965
    Join Date
    Jan 2008
    Beans
    3

    Re: Howto: Backup and restore your system!

    Great work..>Thank you so much...

  6. #966
    Join Date
    Jun 2005
    Location
    Australia
    Beans
    1,837

    Re: Howto: Backup and restore your system!

    It may have been mentioned in this thread already, but dont make the mistake I made and save your backup to a fat32 filesystem (on a USB drive for instance). I had forgotten that fat32 didnt support files over 4 gig, so my backup ended up being corrupted with an 'unexpected EOF' (end of file) error.

    I wasnt using the straight 'tar method', but rather the sbackup application, which failed silently, leaving me in the dark and without a backup.

    Another error I made using a pretty straightforward method of simply copying my entire /home to a separate external drive using the cp command. I didnt pay much attention to what I had actually copied over, but I had failed to copy over 'hidden files' so I lost all my old config settings.
    Last edited by Mustard; November 12th, 2009 at 06:58 PM.

  7. #967
    Join Date
    Jan 2008
    Beans
    3

    Re: Howto: Backup and restore your system!

    Hope you have an answer already...Anyways, you just need to check if the media mount point is mounted with the Windows partitions. If yes, then exclude them in the backup command

    Cheers...

    Quote Originally Posted by huanhuan19 View Post
    I have a problem when I backup, it also backups all my windows partitions. It is huge file.

    So what else do I need to exclude then?

    THanks,

  8. #968
    Join Date
    Jun 2007
    Beans
    271

    Re: Howto: Backup and restore your system!

    So I have a separate partition that is /home, and I have another 13GB partition that is mounted as /backup

    the purpose of the /backup is for the backup file....How can I tell tar to write the file to /backup?

    if I add --exclude=/home --exclude=/backup will that make it so that I don't backup those partitions?? I don't want to backup my /home cause that is where all my movies and music is and it would just be too large...I think.

  9. #969
    Join Date
    Oct 2008
    Beans
    286
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Howto: Backup and restore your system!

    Having about 200,000 files on my ubuntu partition .How long would it take to backup ? Having a x2 2Ghz processor ?

  10. #970
    Join Date
    Nov 2009
    Beans
    27
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Howto: Backup and restore your system!

    Will this method work for software as well as documents?

    I would like to re-install Ubuntu to take the option to encrypt the home partition and I'm trying to do it in the most painless way possible.

Page 97 of 138 FirstFirst ... 47879596979899107 ... 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
  •