Link to home
Start Free TrialLog in
Avatar of Steve Eckerman
Steve Eckerman

asked on

XCOPY Routine

Hello Experts,  I am currently running an xcopy routine to back up files from my server to another machine.  However when it copy's the files from one directory it only copy's about half of the directories contained in that folder.  The directory with the problem is called home.  Attached is the xcopy script that I am running.  Any ideas as to why it only copies some of the directories would be greatly appreciated.  Thanks!
xcopy \\PSIDC1\PSI\data\access\*.md? \\PSIBACKUP\psi\data\access\ /y/s/h/d
xcopy \\PSIDC1\HR\data\access\*.md? \\PSIBACKUP\psi\data\access\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\access2003\*.md? \\PSIBACKUP\psi\data\access2003\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\labels\*.* \\PSIBACKUP\psi\data\LABELS\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\Word\*.* \\PSIBACKUP\psi\data\Word\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\excel\*.* \\PSIBACKUP\psi\data\excel\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\powerpoint\*.* \\PSIBACKUP\psi\data\powerpoint\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\Project\*.* \\PSIBACKUP\psi\data\project\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\QS9000\*.* \\PSIBACKUP\psi\data\QS9000\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\Visio\*.* \\PSIBACKUP\psi\data\Visio\ /y/s/h/d
xcopy \\PSIDC1\PSI\data\CADFILES\*.* \\PSIBACKUP\psi\data\CADFILES\ /y/s/h/d
xcopy \\PSIDC1\PSI\\dataFAMS\*.* \\PSIBACKUP\psi\data\FAMS\ /y/s/h/d
xcopy \\PSIDC1\PeachTree\*.* \\PSIBACKUP\psi\data\pca\ /y/s/h/d
xcopy \\PSIDC1\PSI\msoffice\*.* \\PSIBACKUP\psi\msoffice\ /y/s/h/d
xcopy \\PSIDC1\Home\*.* \\PSIBACKUP\psi\home\ /y/s/h/d
xcopy \\PSIDC1\Pca_new\*.* \\PSIBACKUP\psi\data\pca_new\ /y/s/h/d
attrib -a \\PSIBACKUP\psi\*.* /s/d

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Steve Eckerman
Steve Eckerman

ASKER

Thank you Expert but I am not sure what a "code block" is.
Great answer!!!  I am working on the Robocopy script right now!!!  Thanks!!!
I tried rerunning the xcopy routine and when it attempted to do the home directory I received a insufficient memory error.  What to I need to add to prevent this from happening?  Thanks
Probably that is a result of circular links in the home directory, generating extensive long paths. I cannot think of a way to prevent from following those links. RoboCopy should not have that issue.
Thanks for the explanation!