Results 1 to 4 of 4

Thread: [SOLVED] Single Command Backup Probelms

  1. #1
    Join Date
    Sep 2007
    Beans
    59
    Distro
    Hardy Heron (Ubuntu Development)

    Talking [SOLVED] Single Command Backup Probelms

    I am trying to follow these directions here,
    http://siriusgeek.com/?p=5
    to set up the one line backup to my USB external hard drive. I'm only using 4.1GB out of 750GB on the external drive, and 30GB out of 140GB used on the main drive. I'm just trying to backup my home folder every night to my usb drive.

    But when I start the backup command,
    Code:
    sudo tar -cvf /media/disk/backup.tar ~
    it starts copying files and stop at,
    Code:
    /home/user/.VirtualBox/Temp XP.vdi
    tar: /media/disk/backup.tar: Wrote only 4095 of 10240 bytes
    tar: Error is not recoverable: exiting now
    The file "Temp XP.vdi" is a pretty big virtual disk image. I don't know even where to look for help to this. Thanks guys.

  2. #2
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,096
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Single Command Backup Probelms

    Hello c1rcu17,
    Nice link, thanks for sharing it.
    Looking down around the bottom of the web page you linked to, it says we can exclude dierctories from the backup by typing '--exclude=' after the command, and the file path to any directories we don't want included in the backup.
    In your case you probably don't really need to include VirtualBox/Temp XP.vdi if it's a big file and it's causing problems.

    I hope I guessed right, but here is my try at making the command do that,
    Code:
    sudo tar -cvf /media/disk/backup.tar ~ --exclude=~/.VirtualBox/Temp XP.vdi
    Try that and see if it helps.
    Regards, Herman
    Ubuntu user since 2004 (Warty Warthog)

  3. #3
    Join Date
    Sep 2007
    Beans
    59
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Single Command Backup Probelms

    Your solution works, but my problem is that I have many files and .iso's that are quite large. Is there a way to increase the file size limit so that I don't get this error?

  4. #4
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,096
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Single Command Backup Probelms

    I didn't know there was any file size limit.

    Have you checked file ownership and permissions with the ls -l command?
    Ubuntu user since 2004 (Warty Warthog)

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
  •