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

Thread: Backup to USB: Recommendation Request

  1. #1
    Join Date
    May 2008
    Beans
    161

    Backup to USB: Recommendation Request

    I've been on Ubuntu for 3 years, but have not yet found a straightforward, simple, and routine method to do incremental backups of my home directory (on its own partition) to a USB drive that is not continuously connected to my laptop. One downside of being a Linux user is too MUCH choice sometimes.

    The last thing I tried was Simple Backup... which seemed really cool until it crashed my system by putting a huge file on my system partition (/root/.local/share/Trash/files/2009-04-05_08.30.17.835626.laptop-mckimmy.ful/files.tgz) which both freaked me out and lost me many hours trying to figure out what happened.

    There are a lot of backup utilities, but I'd like to know what you recommend, and why.

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,657
    Distro
    Ubuntu

    Re: Backup to USB: Recommendation Request

    Quote Originally Posted by windfix View Post
    I've been on Ubuntu for 3 years, but have not yet found a straightforward, simple, and routine method to do incremental backups of my home directory (on its own partition) to a USB drive that is not continuously connected to my laptop.
    If you use fstab, so that the usb drive is mounted at the same point, with the sane permissions etc etc, then you may find it easier.

  3. #3
    Join Date
    May 2008
    Beans
    161

    Re: Backup to USB: Recommendation Request

    I can find (backup) and edit fstab, but wouldn't know what to put in there to achieve what you're suggesting.

  4. #4
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,657
    Distro
    Ubuntu

    Re: Backup to USB: Recommendation Request

    I`m assuming that the main problem is that the usb drive isn`t connected all the time.

    And that if it was, your backup stratergy would work.

    If this is not the case, I`m (as it were) barking up the wrong tree.

  5. #5
    Join Date
    Mar 2010
    Location
    Oklahoma
    Beans
    156
    Distro
    Ubuntu UNR

    Re: Backup to USB: Recommendation Request

    for something like this rsync is probably the way to go.
    your usb drive is probably mounted in /media under the wonderful name of '[numbersanddashes]’.

    open a terminal and cd /media/[numbersanddashes]
    mkdir <backup name>cd <backup name>

    the home directory is what you want to backup you can type:
    rsync -arvu /home

    the switches mean. a= archive, r= recursive, v= verbose, u= update.

    the first time rsync does take a while time to copy all of these files and folders,but the next time it’s run it only adds new stuff. if you run this once a week only the changes that were made will be added. if you added several new documents to your home directory, it will only copy those new files.


    If you deleted an file you need, you could use Nautilus, browse to the usb and copy it back. but if you delete yout /home directory just rsync it back by reversing the command:
    cd /home
    rsync -arvu /media/[numbersanddashes]/<backup name>/home .

    note the dot at the end! that is not a mistake it must be added

    one thing to remember is rsync copies information exactly, if you copy a 100mb file using rsync it is still 100mb on the backup end
    Last edited by colorlessprism; April 5th, 2010 at 11:02 PM. Reason: spelling
    I would change the world, but they wont give me the source code

    MD5 - Check your Hash | GPG Errors? - Click Here | Remastersys - Guide

  6. #6
    Join Date
    May 2008
    Beans
    161

    terminal vs. GUI

    I am learning to use command-line, and understand your suggestion - which I will try. I'd love to find a GUI that sets this up and looks for my USB-drive, performing the backup the next time it's available. (I switch my laptop between docks at work and at home daily).

    Command line is cool, and I get that it's more flexible and powerful, but I am also on a mission to show education professionals that Ubuntu is a completely viable alternative - and Joe User would just cut and run if I told them to do this at the terminal.

  7. #7
    Join Date
    Jul 2007
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Lightbulb Re: Backup to USB: Recommendation Request

    Haven't used it extensively but 'Back in Time' seems a pretty good GUI to backup to USB drives using rsync.

    You can schedule jobs, although I do not know what happens if the drive is not plugged in!

    There is a quick tip 'If you have any network shares mounted'

    Tim

  8. #8
    Join Date
    Mar 2010
    Location
    Oklahoma
    Beans
    156
    Distro
    Ubuntu UNR

    Re: Backup to USB: Recommendation Request

    there are a ton of rsync guis out there. even some web interface ones. just type "rsync gui" into google and find one that suits you. you will move more and more into using the terminal for more and more things (Alt+F2 gets you hooked quickly as well), sometimes i even shutdown from the terminal since im already there. good luck
    I would change the world, but they wont give me the source code

    MD5 - Check your Hash | GPG Errors? - Click Here | Remastersys - Guide

  9. #9
    Join Date
    Apr 2009
    Location
    Houston, TX
    Beans
    916
    Distro
    Ubuntu Development Release

    Re: Backup to USB: Recommendation Request

    Grsync is the built-in 'gui' version of rsync and I use it to backup my home folder to an NTFS 'backup' drive that I have permanently mounted via FSTAB, so that I think would be an ideal choice for your situation.
    Earl S. Sharp----------------------------------------
    Ubuntu User # 27653 |Linux user # 491157 | LPI # 183649
    Please mark threads as solved...

  10. #10
    Join Date
    May 2008
    Beans
    161

    Re: Backup to USB: Recommendation Request

    Thanks, I will try grsync. Any chance you can tell me how to permanently mount via fstab? My eSATA drive mounts as /mount/RAID. My fstab contents are:

    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # / was on /dev/sda1 during installation
    UUID=8842a3b0-be00-4927-b837-9a6be269b924 / ext3 errors=remount-ro 0 1
    # /home was on /dev/sda4 during installation
    UUID=8655381a-d80a-4744-8682-e42354d63a57 /home ext3 defaults 0 2
    # swap was on /dev/sda2 during installation
    UUID=6a35447a-4ec9-4c40-b2bc-4438f2174946 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

Page 1 of 2 12 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
  •