Bob Deerinwater
(Starting to like KiXtart)
2003-03-05 11:15 PM
User Files Backup

We are currently tryiing to back up our users data files on our servers. Problem is that users do not have hoime directories and not only that most everything that they have created resides on local drive. My directors has come up with a bat file that uses xcopy. But it is a pain in the ... to implement. Requires touchiing all pc's and set up of task. here is what it looks like. I hope someone can make this process easier
code:
echo off

:: CVHP Backup Script FOR USERS.


:: Determine operating system

Echo Backing Up *.doc, *.xls, *.mdb, *.ppt, *.mdb, *.Vsd
Sleep 2
net use h: \\server\username

XCOPY C:*.doc h:\%username%\CFILES\*.* /S /D
XCOPY D:*.doc h:\%username%\DFILES\*.* /S /D
XCOPY C:*.xls h:\%username%\CFILES\*.* /S /D
XCOPY D:*.xls h:\%username%\DFILES\*.* /S /D
XCOPY C:*.ppt h:\%username%\CFILES\*.* /S /D
XCOPY D:*.ppt h:\%username%\DFILES\*.* /S /D
XCOPY C:*.mdb h:\%username%\CFILES\*.* /S /D
XCOPY D:*.mdb h:\%username%\DFILES\*.* /S /D
XCOPY C:*.vsd h:\%username%\CFILES\*.* /S /D
XCOPY D:*.vsd h:\%username%\DFILES\*.* /S /D
Echo Personal Settings
Sleep 2
Echo Backup Complete
Sleep 2

exit




Sealeopard
(KiX Master)
2003-03-06 04:52 AM
Re: User Files Backup

Why not od this remotely through the administrative shares. Run the script form the server.
code:
xcopy "\\workstation\c$\*.doc" "h:\%username%\CFILES\*.*" /S /D

with a KiXtart script that has a list of computers/extensions and loops through them.