I am trying to sync all PHP files to another computer over ssh
via rsync
. However, it never copies any files. I am on Mac OSX Mountain Lion (10.8.4)
Here is what I have tried:
rsync --rsh=ssh --verbose --remove-source-files --recursive --exclude=* --include='*.php' $HOME/ pi@raspberrypi:~
building file list ... done
sent 36 bytes received 20 bytes 112.00 bytes/sec
total size is 0 speedup is 0.00
or
rsync --verbose --remove-source-files -e "ssh" $HOME/*.php pi@raspberrypi:~
rsync: link_stat "/Users/simonjackson/*.php" failed: No such file or directory (2)
sent 21 bytes received 20 bytes 82.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
Any thoughts on this?