vendredi 9 janvier 2015

rsync recursively with a certain depth of subfolders


I want to rsync a folder recursively but want subfolders included only to a certain depth.


For example I would want a depth of 1,2,3 or 4 subfolders like this:



source/
├── subfolder 1
│ ├── subsubfolder
│ │ ├── subsubsubfolder
│ │ │ └── wanted with depth 4.txt
│ │ └── wanted with depth 3.txt
│ └── wanted with depth 2.txt
├── subfolder 2
│ └── wanted with depth 2.txt
└── wanted with depth 1.txt


Aucun commentaire:

Enregistrer un commentaire