Re: F41 rsync --include-from=FILE usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 3 Jul 2025 at 16:57, Robert Moskowitz via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
I tried:

/usr/bin/rsync -ahR --password-file=/home/me/rsync.pswd --stats
--include-from=/home/me/backup.lst rsync://me@homestor/me/backups/

where /home/me/backup.lst contained
/home/me/data/htt/./httnet/
/home/me/data/./excel
/home/me/data/./word

rsync seemed to ignore the --include-from=FILE option and treated the
command to print the content of rsync://me@homestor/me/backups/

I think it *might* be your pattern matching. From the man rsync(1) page:

--include-from=FILE      read include patterns from FILE
--files-from=FILE        read list of source-file names from FILE 

   PATTERN MATCHING RULES
       Most of the rules mentioned above take an argument that specifies what the rule should match.  If rsync is recursing through a di‐
       rectory  hierarchy,  keep  in  mind  that each pattern is matched against the name of every directory in the descent path as rsync
       finds the filenames to send.

       The matching rules for the pattern argument take several forms:

o      If a pattern contains a / (not counting a trailing slash) or a "**" (which can match a slash), then the pattern is  matched
        against  the  full pathname, including any leading directories within the transfer.  

>>>>> If the pattern doesn't contain a (non-trailing) / or a "**", then it is matched only against the final component of the filename or pathname. <<<<<

If you double check, was httnet synced successfully, but NOT ./excel and ./word? Untested, but I would try the following in /home/me/backup.lst

/home/me/data/htt/httnet/
/home/me/data/excel/
/home/me/data/word/
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux