Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: rsync command needs help exclude command not excluding

  1. #11
    Join Date
    Sep 2011
    Beans
    180
    Distro
    Ubuntu

    Re: rsync command needs help exclude command not excluding

    Quote Originally Posted by agillator View Post
    Two excludes: '--exclude Videos --exclude Audios' for example.
    I've got one last issue going on:

    I'm receiving this message from time to time on certain parts of the copy:

    rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
    Here's the whole command I used:
    Code:
    rsync --progress -rEog --exclude Videos/ --exclude converted_music/ --exclude VirtualBox\ VMs/ --exclude virtual-drives/ --exclude Backup_of_boot_sectors/ --exclude examples.desktop --exclude Music/ --exclude .ecryptfs --exclude .VirtualBox/ --exclude .thumbnails/ --exclude .thunderbird/ --exclude .vidalia/ --exclude .teamviewer/ --exclude Templates/ --exclude sources.list --exclude wary-5.3.iso --exclude Public/ --exclude .cache/ /home/alex/ /media/backup/12.04-Precise-backup_4.23.2012/
    It gets stuck copying over my Windows ISO - The destination drive is formatted in EXT4 so I have no clue what its giving me negativity.

    but this is what it says:
    Downloads/Windows.7.Ultimate.32-64Bit.(2011-02-09).iso
    3809312768 83% 21.03MB/s 0:00:35
    rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
    rsync: connection unexpectedly closed (70735 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
    Any ideas?

  2. #12
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,597
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: rsync command needs help exclude command not excluding

    Is the destination a local HD, a USB HD, or network share mounted?
    Regards.


    BTW, you have so many excludes that I would do this:
    Code:
    rsync --progress -rEog --exclude-from='excludes.txt /home/alex/ /media/backup/12.04-Precise-backup_4.23.2012/
    and then in excludes.txt I would put all rules:
    Code:
    - Videos/
    - converted_music/
    - VirtualBox VMs/
    - virtual-drives/
    - Backup_of_boot_sectors/
    - examples.desktop
    - Music/
    - .ecryptfs
    - .VirtualBox/
    - .thumbnails/
    - .thunderbird/
    - .vidalia/
    - .teamviewer/
    - Templates/
    - sources.list
    - wary-5.3.iso
    - Public/
    - .cache/
    + *

  3. #13
    Join Date
    Sep 2011
    Beans
    180
    Distro
    Ubuntu

    Question Re: rsync command needs help exclude command not excluding

    Quote Originally Posted by papibe View Post
    Is the destination a local HD, a USB HD, or network share mounted?
    Regards.


    BTW, you have so many excludes that I would do this:
    Code:
    rsync --progress -rEog --exclude-from='excludes.txt /home/alex/ /media/backup/12.04-Precise-backup_4.23.2012/
    and then in excludes.txt I would put all rules:
    Code:
    - Videos/
    - converted_music/
    - VirtualBox VMs/
    - virtual-drives/
    - Backup_of_boot_sectors/
    - examples.desktop
    - Music/
    - .ecryptfs
    - .VirtualBox/
    - .thumbnails/
    - .thunderbird/
    - .vidalia/
    - .teamviewer/
    - Templates/
    - sources.list
    - wary-5.3.iso
    - Public/
    - .cache/
    + *
    how would I set it up to exclude folders that begin in "."?
    and Im copying it to an external

  4. #14
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,597
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: rsync command needs help exclude command not excluding

    Quote Originally Posted by AlexOnVinyl View Post
    how would I set it up to exclude folders that begin in "."?
    For excluding all files and directories starting with a dot:
    Code:
    - .*
    + *
    For just the folders:
    Code:
    - .*/
    + *
    Quote Originally Posted by AlexOnVinyl View Post
    Im copying it to an external
    USB external hardrive?

    I look around for that error, but I didn't find an specific reason for it. However, several hints about timeouts were suggested.

    I've seen that even when there is enough space, but the filesystem is tight for it, rsync may significantly slow down when transferring big files.

    Taking that into consideration I've separated my home's backup rsync command to deal with big files. For example, for VirtualBox's vdi files I use the --inplace option.

    Just some thoughts.
    Regards.

Page 2 of 2 FirstFirst 12

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
  •