私は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/**
結果は同じです。私にとっては完全に話すことのできない音です。