[GLLUG] Samba, netlogon.bat and xcopy
benjamincathey at catheycompany.com
Sun Nov 11 14:12:16 EST 2007
Quick question - something I haven't really solved and am at work on a Sunday so thought I'd but the question out there.
We have a Samba Domain Controller set up here and it works great. The laptop users don't have roaming profiles so I thought I'd backup their "My Documents" folders to the server (with exclusive permissions for safety) just in case. A netlogon file seemed the best way to accomplish this (although I wish there was a way to do it when they logged OFF instead of when the logged ON - so what they had worked on would be backed up - a logoff script if you will.) I looked and looked for a way to have something run at logoff but was never able to come up with a solution. . .
Regardless . . . Here is the weird part. I decided to use xcopy because it is SUPPOSED to be able to compare dates and only copy what has changed date wise.
However it seems to just grab EVERYTHING every time. I have looked at the dates and don't get what the hell it is doing the backups for.
Here is an excerpt from my netlogon.bat:
net use x: \\ladon\usrdocbak
xcopy "%userprofile%\My Documents" x:\%username% /D /E /I /R /C /V /Y
net use /delete x:
Anyone have ANY ideas?
4917 Tranter St.
Lansing, MI 48910 USA
Toll Free: 800.333.1972
"Service is Our Profession"
** LEGAL DISCLAIMER **
This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer.
More information about the linux-user