나는 rsync를 사용하여 그 안에 깊게 중첩된 경로를 제외하고 특정 경로 아래의 모든 것을 복사하는 것을 제외하려고 합니다. 추천하는 방법으로 해봤는데여기:
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight II/my games/
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight II/my games/**
--exclude=/home/*/.local/share/Steam/**
"My Games" 폴더는 출력에 포함되지 않지만 "Steam" 폴더는 다음과 같습니다.
.d..t...... home/dave/.local/share/Steam/
어쩌면 내가 원하는 모든 하위 폴더를 명시적으로 포함해야 한다고 생각했지만 그것도 작동하지 않습니다.
--include=/home/dave/.local/share/Steam/steamapps/
--include=/home/dave/.local/share/Steam/steamapps/**
--include=/home/dave/.local/share/Steam/steamapps/common/
--include=/home/dave/.local/share/Steam/steamapps/common/**
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight II/
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight II/**
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight II/my games/
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight II/my games/**
--exclude=/home/*/.local/share/Steam/**
이 명령의 출력에는 "Torchlight II"를 제외한 "Steam" 폴더 아래의 모든 항목이 포함됩니다. 폴더 이름의 공백이 문제인 줄 알았는데, "Super Meat Boy"와 같이 제가 특별히 포함하지 않은 폴더도 포함되어 있었습니다. 어쨌든 나는 다음과 같이 그것들을 탈출하려고 한다:
--include=/home/dave/.local/share/Steam/steamapps/
--include=/home/dave/.local/share/Steam/steamapps/**
--include=/home/dave/.local/share/Steam/steamapps/common/
--include=/home/dave/.local/share/Steam/steamapps/common/**
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight\ II/
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight\ II/**
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight\ II/my\ games/
--include=/home/dave/.local/share/Steam/steamapps/common/Torchlight\ II/my\ games/**
--exclude=/home/*/.local/share/Steam/**
나는 또한 그 내용을 인용해 보았습니다.
--include=/home/dave/.local/share/Steam/steamapps/
--include=/home/dave/.local/share/Steam/steamapps/**
--include=/home/dave/.local/share/Steam/steamapps/common/
--include=/home/dave/.local/share/Steam/steamapps/common/**
--include="/home/dave/.local/share/Steam/steamapps/common/Torchlight II/"
--include="/home/dave/.local/share/Steam/steamapps/common/Torchlight II/**"
--include="/home/dave/.local/share/Steam/steamapps/common/Torchlight II/my games/"
--include="/home/dave/.local/share/Steam/steamapps/common/Torchlight II/my games/**"
--exclude=/home/*/.local/share/Steam/**
결과는 동일합니다. 나에게는 완전히 말도 안되는 소리입니다.