W
Wilmar Perez
I am looking for a simple solution to automatically backup
the users's files and folders. The idea is to copy only
the office format (.doc, .xls, .ppt, .mdb) documents they
create to a shared folder in a file server on the network.
I've been thinking about using xcopy in a batch file that
runs when the user logs off from her workstation. So,
this is my batch file:
REM Copy documents from the user work station to the file
server called babel REM I use the first two lines just to
register the time and date date /T >>
\\babel\UserDocs$\xcopy.log time /T >>
\\babel\UserDocs$\xcopy.log
REM The following is a single line
xcopy "c:\Documents and Settings\%username%\Mis
documentos\*.*" \\babel\UserDocs$\% username%
\ /c /s /r /i /o /x /k /e /z /exclude:\\babel\UserDocs$\ex
clude.txt >> \\babel\UserDocs$\xcopy.log
REM And here it ends
My exlude.txt file is:
..mp3
..wav
..exe
..com
..src
So, what I want to ask is if you see anything wrong in the
way I'm handling the problem. Also I would like to know
if there is any way in which I could tell xcopy to copy
just a certain kind of files rathar than to exclude an
endless lot of them.
Thanks a lot for your help.
the users's files and folders. The idea is to copy only
the office format (.doc, .xls, .ppt, .mdb) documents they
create to a shared folder in a file server on the network.
I've been thinking about using xcopy in a batch file that
runs when the user logs off from her workstation. So,
this is my batch file:
REM Copy documents from the user work station to the file
server called babel REM I use the first two lines just to
register the time and date date /T >>
\\babel\UserDocs$\xcopy.log time /T >>
\\babel\UserDocs$\xcopy.log
REM The following is a single line
xcopy "c:\Documents and Settings\%username%\Mis
documentos\*.*" \\babel\UserDocs$\% username%
\ /c /s /r /i /o /x /k /e /z /exclude:\\babel\UserDocs$\ex
clude.txt >> \\babel\UserDocs$\xcopy.log
REM And here it ends
My exlude.txt file is:
..mp3
..wav
..exe
..com
..src
So, what I want to ask is if you see anything wrong in the
way I'm handling the problem. Also I would like to know
if there is any way in which I could tell xcopy to copy
just a certain kind of files rathar than to exclude an
endless lot of them.
Thanks a lot for your help.