Results 1 to 3 of 3

Thread: rsynch --include not matching

  1. #1
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    144

    Default rsynch --include not matching

    I'm trying to mirror a repository with rsync followed by createrepo.
    Code:
    rsync -avz --delete --exclude="*00archived*" --exclude="{*debuginfo*,*debugsource*}" --exclude="SRPMS/" --exclude="**/*.src.rpm" --include="**/*.rpm" --exclude="*" rsync://rsync.opensuse.org/opensuse-full/opensuse/distribution/leap/15.1/repo/oss/ "/run/media/root/DFS1JFS64/Vendors/openSUSE/repos/oss"
    
    This is rsync.opensuse.org, public rsync server of openSUSE.org,
    limited to 50 connections.
    
    If you run a public mirror, please get in contact so we can give you 
    access to the stage rsync server.
    You'll find conditions for access and further information at
    http://en.opensuse.org/Mirror_Infrastructure
    
    Thanks!
    admin@opensuse.org
    
    
    receiving incremental file list
    
    sent 122 bytes  received 41 bytes  65.20 bytes/sec
    total size is 0  speedup is 0.00
    linux-gn5l:~ #
    I assume that --include="**/*.rpm" is incorrect, but I don't see what is wrong with it.

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,316
    Blog Entries
    14

    Default Re: rsynch --include not matching

    AFAICS it's the '--exlude '*' ' after the include.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    144

    Default Re: rsynch --include not matching

    Quote Originally Posted by shmuelmetz View Post
    I'm trying to mirror a repository with rsync followed by createrepo.
    Code:
    rsync -avz --delete --exclude="*00archived*" --exclude="{*debuginfo*,*debugsource*}" --exclude="SRPMS/" --exclude="**/*.src.rpm" --include="**/*.rpm" --exclude="*" rsync://rsync.opensuse.org/opensuse-full/opensuse/distribution/leap/15.1/repo/oss/ "/run/media/root/DFS1JFS64/Vendors/openSUSE/repos/oss"
    
    This is rsync.opensuse.org, public rsync server of openSUSE.org,
    limited to 50 connections.
    
    If you run a public mirror, please get in contact so we can give you 
    access to the stage rsync server.
    You'll find conditions for access and further information at
    http://en.opensuse.org/Mirror_Infrastructure
    
    Thanks!
    admin@opensuse.org
    
    
    receiving incremental file list
    
    sent 122 bytes  received 41 bytes  65.20 bytes/sec
    total size is 0  speedup is 0.00
    linux-gn5l:~ #
    I assume that --include="**/*.rpm" is incorrect, but I don't see what is wrong with it.
    "FILTER RULES

    The filter rules allow for flexible selection of which files to transfer(include) and which files to skip (exclude). The rules either directlyspecify include/exclude patterns or they specify a way to acquire moreinclude/exclude patterns (e.g. to read them from a file).As the list of files/directories to transfer is built, rsync checks eachname to be transferred against the list of include/exclude patterns inturn, and the first matching pattern is acted on: if it is an excludepattern, then that file is skipped; if it is an include pattern then thatfilename is not skipped; if no matching pattern is found, then thefilename is not skipped."

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •