Displaying 2 results from an estimated 2 matches for "vhrltdium".
2019 Dec 29
2
Excluding a . directory in a subdirectory
I am having problems getting a . directory in a subdirectory to be excluded when rsyncing. I am using rsync 3.1.2 on CentOS 7 and the command line is:
#??? all files from ~/bin/ and I use want to exclude the directory ~/bin/docker/.git
rsync -vHrltDium -c --chmod=Du+rwx,go-rwx,Fu+rw,go-rw --no-perms --stats --include='*' --include='*/' --exclude=".git/" -e "ssh -y -p 22" /home/user/bin/ user at 1.2.3.4:~/bin
What am I doing wrong? I thought the exclusion pattern above would exclude any .git subdirectory regard...
2019 Dec 29
0
Excluding a . directory in a subdirectory
...2/28/19 9:15 PM, H via rsync wrote:
> I am having problems getting a . directory in a subdirectory to be excluded when rsyncing. I am using rsync 3.1.2 on CentOS 7 and the command line is:
>
> #??? all files from ~/bin/ and I use want to exclude the directory ~/bin/docker/.git
> rsync -vHrltDium -c --chmod=Du+rwx,go-rwx,Fu+rw,go-rw --no-perms --stats --include='*' --include='*/' --exclude=".git/" -e "ssh -y -p 22" /home/user/bin/ user at 1.2.3.4:~/bin
>
> What am I doing wrong? I thought the exclusion pattern above would exclude any .git subdirect...