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

Thread: rsync - copy files within all subdirectories and with patterns

  1. #11
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: rsync - copy files within all subdirectories and with patterns

    --include-from=FILE
    This option is related to the --include option, but it specifies a FILE that contains include patterns (one per line). Blank lines in the file and lines starting with oq;cq or oq#cq are ignored. If FILE is -, the list will be read from standard input.
    Code:
    rsync -a --include-from=/home/tamas/probalista.txt . /home/tamas/proba

  2. #12
    Join Date
    May 2007
    Location
    Budapest, Hungary, Europe
    Beans
    96
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: rsync - copy files within all subdirectories and with patterns

    Well, this one:
    rsync -a --include-from=/home/tamas/probalista.txt . /home/tamas/proba
    copies ALL files (not only the ones defined in the txt file!), and the structure itslef, as well.
    An idea, what changed my life is in the books of Daniel QUINN: "Ishmael" and "The Story of B"

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
  •