On Saturday 28 October 2006 14:40, Carlos E. R. wrote:
The Saturday 2006-10-28 at 19:50 +0800, ??? wrote:
My idea is I can run a script in crontab, on the desktop in my office, that connects to the web server through ssh and fetch files I need to back up. This script connects to the web server as a normal user, but then the script cannot read the files web visitors uploaded (permission denied). So far I thinked about 4 methods I can solve this problem, I want to share these ideas with experienced users on the group and listen to your suggestions;)
A fifth one: rsync, perhaps via ssh transport.
Yes, but IMHO this seems only a partial solution, as it does not take care of the read-permission problem. ;-) 600 means only wwwrun or root have read-access. But combined with root login via ssh-key would be not quite bad at all. Cheers, Leen