New command string which creates --included dirs and copies it's content dir and/or files, but ONLY 2 DIRS DEEP. Why?
rsync -avid --progress ~/MyDocuments/'Inet Publishing'/ --recursive --include='LandisTwo (2019)' --include='LandisTwo (2020) {backup}' --include='*.*' --exclude='**/' e6420:/home/landis/Media/2TBackup/Backups/MyDocuments/"Inet\ Publishing"/ | tee -a ~/logs/Backup-InetPublishing_2020.txt
- I've descovered that the Directories are Created, but NO FILES are copied to them (no recursion). files in parent are copied, but Not sub dirs - working on it.
this works for me, from workstation to server, backing up (rysnc) my personal site to another server in addition to the whole directory w/ all sites when rysnc'ing parent ../Inet\ Publishing (the 'n' in -avin is 'Dry-Run', remove.).
The --exclude */ is all other directories in 'Inet Publishing/' and seems to have to be After --include per man rsync process order ( if before --include, then Everything is --excluded and no further tokens are processed, at least that's how i read it and in practice dry runs when coming up with this. ).
This is actually one line out of one of my scripts i run with cron. *obviously, the destination host can be an IP, i have the hosts defined in /etc/hosts and have ssh key pairs,,, so i use the host name.
rsync -avin --progress ~/MyDocuments/'Inet Publishing'/ --include='LandisTwo (2019)' --include='LandisTwo (2020) {backup}' --exclude='*/' e6420:/home/landis/Media/2TBackup/Backups/MyDocuments/ | tee -a ~/logs/Backup-InetPublishing_2020.txt