On Thursday 04 November 2004 10:46 pm, David Rankin wrote:
The problem with XP is that it will not share the users "My Documents" directory or below without absolutely forcing it to do so. Unless the user wants to ignore the security risk and share his "My Documents", then the files he wants to backup should be put somewhere else. "Shared Documents" or where ever.
rsync is still your answer. From the linux box write a 1 line script or just add a crontab entry that basically is
rsync -(your options) \\windowsXP\Shared/ Files\directory \\linuxbox\whereever
don't simply use rsync -e, because there is no 1 for 1 mapping of file attributes from windows to unix. However, rsync is smart enough to do an incrimental.
you can improve upon you script by testing to see that the windows box is online before invoking rsync. It doesn't really hurt if it isn't, you just get bigger log files.........
I'm confused. If the XP machine isn't set to share "My Documents", then how can rsync do its work? And if it is set to share "My Documents", why does it matter (from the point of view of the XP machine) what tool the Linux machine is using to retrieve some or all of the files? I think you can deal with the security risk by placing a password on the share (on the XP machine) and providing that password to the smbmount command on the Linux machine that makes the connection. I did something like that with a Win2K machine, and Win2K, I believe, is even fussier about access privileges. Paul