Skip to content

Include dir without including other files in parent dirs #854

@stackek

Description

@stackek

Say i want add this to my filter file:

+ /home/crok/.local/share/Steam/steamapps/compatdata/632470/pfx/drive_c/users/steamuser/AppData/LocalLow/ZAUM Studio/Disco Elysium/**

in order to copy this dir and all of its contents preserving whole path (i am running rsync with input in / and output on my USB drive). But without adding all its parent dirs it won't math the desired folder content:

+ /home/crok/.local/share/
+ /home/crok/.local/share/Steam/
+ /home/crok/.local/share/Steam/steamapps/
...

I find this behavour strange, because for example it's enough to specify

+ /home/
+ /home/crok/.config/***

without + /home/crok/ in order to copy .config content

So the question is how do i copy that deeply settled folder without needing to include that much lines for every parent folder?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions