I use rsync backup on my Android device to backup some files from my device to my *nix server.
It sort of works, except the target directory and all files under it have their file mode flags set to 075, making them unaccessible to the owner (me).
I guess the flaw is with rsync backup, but I haven't found a way to remedy that.
Is there a way to have a job triggered, when files are transferred via ssh?
My current workaround is to have a cron job setting the file flags to 755 at a regular interval.
I'm using the following rsync command:
rsync -rptgo --progress --delete-after -e "ssh -y -p 22 -i '/sdcard/dss_key'" /sdcard/myfolder user@server:~/