Using Cygwin I can use rysnc as expected, but using the same rysnc command from a shell file I see:
'rsync: command not found'
Script is:
#!/bin/sh
echo 'Moving local media to dev server'
rysnc -vruz --progress -chmod=0755 --exclude catalog/product/cache media user@domain:/var/sites/folder/folder
execution:
$ ./script.sh
Looks like a typo to me. Change rysnc
to rsync
.
PS: Don't type in error messages. Cut and paste them. Each and every character is important to diagnose the problem.
Perhaps cygwin is not installed on your machine. Install it from the Cygwin setup.exe
that can be downloaded on www.cygwin.com
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.