Estou tentando impedir que tudo sob um determinado caminho seja copiado com o rsync, exceto por um caminho em particular que está profundamente aninhado nele. Eu tentei a abordagem recomendada aqui :
--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/**
A pasta "meus jogos" não está incluída na saída, mas a pasta "Steam" é:
.d..t...... home/dave/.local/share/Steam/
Eu pensei que talvez eu precise incluir explicitamente todas as subpastas até a desejada, mas isso também não funcionou:
--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/**
A saída deste comando incluiu tudo sob a pasta "Steam", exceto "Torchlight II". Eu pensei que o problema deve ser o espaço no nome da pasta, mas outras pastas estão incluídas - mesmo aquelas que eu não pretendo especificamente incluir - como "Super Meat Boy". Independentemente disso, eu tentei escapar deles assim:
--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/**
Eu também tentei citá-los:
--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/**
O resultado é o mesmo. Não faz sentido para mim.
Tags rsync