I have a script that is in backup.sh file (chmod 775) :
rsync -e 'ssh -p 31234' -avlz --delete --stats --progress --copy-links email@example.com:/home/admin/rsync /home/myname/rsync/foo/
When I call it manually, everything works well (and I don't have to enter my passphrase). But when I call it from cron, it just doesn't work.
I used the same setup on the computer of my coworker (who has the same access than me) and it works well.