I've found that xcopy (which I've used for years) will fail if the path is too 
long.  I've moved to robocopy on anything more than just basic backups.  
Options include mirroring, long paths, etc.

Customized Business Services, LLC         (928) 580-6352
Dennis Schuette                                              Primary:     
[email protected] 
350 West 16th Street, Suite 309                  Alternate:  
[email protected]
Yuma, AZ  85364                                               Map it

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Adam 
Buckland
Sent: Tuesday, October 21, 2014 6:03 AM
To: [email protected]
Subject: [NF] - Backup Script



I have a backup script that works great in the foreground but is failing when 
run as a scheduled task.

Script is :

rmdir /S /Q e:\day5
move /y e:\day4 e:\day5
move /y e:\day3 e:\day4
move /y e:\day2 e:\day3
move /y e:\day1 e:\day2
mkdir e:\day1

xcopy o:\ e:\day1\labeltraxx /E /Y /I /Z xcopy p:\reports e:\day1\sage\reports 
/E /Y /I xcopy q:\ e:\day1\sage\data /E /Y /I xcopy z:\lm e:\day1\lm /E /Y /I 
date /T > e:\datefile.txt time /T > e:\timefile.txt



O, p & q are external shares on other servers whilst z is a local drive

The first 3 xcopy commands are not working but the local on is.. So it's 
something to do with the networked drives that is OK in the foreground..

Any suggestions?

Cheers in advance

Adam.


--- StripMime Report -- processed MIME parts --- multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to