Results 1 to 3 of 3

Thread: rdiff-backup Out Of Space Error

  1. #1
    Join Date
    May 2011
    Beans
    35
    Distro
    Ubuntu 11.04 Natty Narwhal

    rdiff-backup Out Of Space Error

    Hi

    I have being trying to set up a backup on an external hard drive using rdiff-backup, as the Gnome backup utility seems to be crashing the computer.
    When I run the program, I get this:

    Code:
    Exception '[Errno 28] No space left on device' raised of class '<type 'exceptions.IOError'>':
      File "/usr/lib/pymodules/python2.7/rdiff_backup/Main.py", line 304, in error_check_Main
        try: Main(arglist)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/Main.py", line 324, in Main
        take_action(rps)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/Main.py", line 280, in take_action
        elif action == "backup": Backup(rps[0], rps[1])
      File "/usr/lib/pymodules/python2.7/rdiff_backup/Main.py", line 346, in Backup
        backup.Mirror(rpin, rpout)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/backup.py", line 38, in Mirror
        DestS.patch(dest_rpath, source_diffiter)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/backup.py", line 232, in patch
        ITR(diff.index, diff)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/rorpiter.py", line 281, in __call__
        last_branch.fast_process(*args)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/backup.py", line 529, in fast_process
        if self.patch_to_temp(mirror_rp, diff_rorp, tf):
      File "/usr/lib/pymodules/python2.7/rdiff_backup/backup.py", line 559, in patch_to_temp
        rpath.copy_attribs(diff_rorp, new)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/rpath.py", line 181, in copy_attribs
        if Globals.eas_write: rpout.write_ea(rpin.get_ea())
      File "/usr/lib/pymodules/python2.7/rdiff_backup/rpath.py", line 1347, in write_ea
        ea.write_to_rp(self)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/eas_acls.py", line 114, in write_to_rp
        rp.conn.xattr.setxattr(rp.path, name, value, 0, rp.issym())
    
    Traceback (most recent call last):
      File "/usr/bin/rdiff-backup", line 30, in <module>
        rdiff_backup.Main.error_check_Main(sys.argv[1:])
      File "/usr/lib/pymodules/python2.7/rdiff_backup/Main.py", line 304, in error_check_Main
        try: Main(arglist)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/Main.py", line 324, in Main
        take_action(rps)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/Main.py", line 280, in take_action
        elif action == "backup": Backup(rps[0], rps[1])
      File "/usr/lib/pymodules/python2.7/rdiff_backup/Main.py", line 346, in Backup
        backup.Mirror(rpin, rpout)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/backup.py", line 38, in Mirror
        DestS.patch(dest_rpath, source_diffiter)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/backup.py", line 232, in patch
        ITR(diff.index, diff)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/rorpiter.py", line 281, in __call__
        last_branch.fast_process(*args)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/backup.py", line 529, in fast_process
        if self.patch_to_temp(mirror_rp, diff_rorp, tf):
      File "/usr/lib/pymodules/python2.7/rdiff_backup/backup.py", line 559, in patch_to_temp
        rpath.copy_attribs(diff_rorp, new)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/rpath.py", line 181, in copy_attribs
        if Globals.eas_write: rpout.write_ea(rpin.get_ea())
      File "/usr/lib/pymodules/python2.7/rdiff_backup/rpath.py", line 1347, in write_ea
        ea.write_to_rp(self)
      File "/usr/lib/pymodules/python2.7/rdiff_backup/eas_acls.py", line 114, in write_to_rp
        rp.conn.xattr.setxattr(rp.path, name, value, 0, rp.issym())
    IOError: [Errno 28] No space left on device
    This is the initial backup, so space for diffs should not be a problem and the destination has 1TB of space, 821gb of which is empty. I am invoking rdiff-backup with:
    Code:
    rdiff-backup -v5 --exclude /mnt --exclude /media --exclude /proc --exclude /tmp --exclude /media --exclude /sys --exclude /dev --exclude /media/2879e147-0d87-4a7c-b836-62a96ca28728/ / /media/2879e147-0d87-4a7c-b836-62a96ca28728/
    Using Ubuntu 11.10 with Gnome 3.

    I would welcome any solutions or alternative methods for backup.

    Thanks
    594932f01af4c535d3f0b967e26679c2e4bc04fa - SHA1 of a photo of a meerkat

  2. #2
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,267
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: rdiff-backup Out Of Space Error

    Have you checked that your source data is significantly less than 1Tb?

    Also, I notice you seem to be backing up your entire system. Is that what you want, or do you want to back up your home folders?

    Rather than manually exclude /proc, /sys, /media and so forth, rather just use the following options:
    Code:
    --exclude-device-files
    --exclude-fifos
    --exclude-other-filesystems
    --exclude-sockets
    Also exclude /tmp and /home/*/.cache (remember to put that within quotes).

    I see you are backing up to the root folder of your media. Sometimes there are permissions problems with that. Therefore, create a new folder in your target media -- say, /jake-backup -- and back up to there.

    So your final line would look something like this (to make it easier to read, I've used the backslash to run it over several lines):
    Code:
    sudo rdiff-backup --verbosity 5 --exclude /tmp --exclude '/home/*/.cache'                  \
       --exclude-device-files --exclude-fifos --exclude-other-filesystems --exclude-sockets    \
       / /media/2879e147-0d87-4a7c-b836-62a96ca28728/jake-backup/
    Remember that each time you run rdiff-backup, it attempts to recover from its last crash; so, I'd recommend that you empty the target folder first!

    Give that a try and see what happens.

    EDIT: Oh, yes, as you are backing up your entire system, you need to use sudo.
    Last edited by Paddy Landau; December 26th, 2011 at 02:12 PM. Reason: Missed out sudo; duplicated /tmp in the command
    Problems with WINE?
    Full Circle Magazine :: Confused "allot"? :: Cheap Linux stickers
    In my day, we had outdoors in which to run, play, and socialise. Now we have computers to do those.

  3. #3
    Join Date
    May 2011
    Beans
    35
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: rdiff-backup Out Of Space Error

    Thanks, that seems to have completely fixed the problem.
    594932f01af4c535d3f0b967e26679c2e4bc04fa - SHA1 of a photo of a meerkat

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
  •