Bonjour,
J'ai un porbleme assez bizarre avec un batch file qui fait un back-up de plusieur dossiers reseau sur un serveur.
Le batch fait le backup parfaitement, mon probleme est avec le LOG qui est generer. Le LOG me montre combien de fichier on ete copier, mais des fois ne montre rien alors que le backup s'est passer correctement.
le batch en question est montrer ci dessous en [color=red]rouge[/color]. Et le LOG defectueux en [color=blue]Bleu[/color] ( comme vous pouvez le constater, il manque des ligne montrant combien de fichier ont ete copier )
Avez vous une idee pourquoi ce bug est present ?
ps: le serveur qui execute le batch toure sur W2000 server with SP4
[color=red]del H:\Setup\_Administration\Backup\Backup.txt
date /t >> H:\Setup\_Administration\Backup\Backup.txt
time /t >> H:\Setup\_Administration\Backup\Backup.txt
ECHO ------------------------------------------------------- >> H:\Setup\_Administration\Backup\Backup.txt
ECHO ------------------------------------------------------- >> H:\Setup\_Administration\Backup\Backup.txt
ECHO ------------------------------------------------------- >> H:\Setup\_Administration\Backup\Backup.txt
ECHO ------------------------------------------------------- >> H:\Setup\_Administration\Backup\Backup.txt
net use m: \\reception\d$
net use n: \\office1\d$
net use o: \\office2\d$
net use p: \\office3\d$
net use q: \\marketing\d$
net use r: \\Copy-Material\d$
rmdir /s /q \\server-bd\backup\03-Wednesday\
ECHO Reception >> H:\Setup\_Administration\Backup\Backup.txt
xcopy m:\*.* \\server-bd\backup\03-Wednesday\Reception /i /e /y /q >> H:\Setup\_Administration\Backup\Backup.txt
net use m: /delete
ECHO _______________________________ >> H:\Setup\_Administration\Backup\Backup.txt
ECHO Office 1 >> H:\Setup\_Administration\Backup\Backup.txt
xcopy n:\*.* \\server-bd\backup\03-Wednesday\Office1 /i /e /y /q >> H:\Setup\_Administration\Backup\Backup.txt
net use n: /delete
c:\psshutdown.exe \\office1 -u lciv -p flute -c -f -n 5 -t 60
ECHO _______________________________ >> H:\Setup\_Administration\Backup\Backup.txt
ECHO Office 2 >> H:\Setup\_Administration\Backup\Backup.txt
xcopy o:\*.* \\server-bd\backup\03-Wednesday\Office2 /i /e /y /q >> H:\Setup\_Administration\Backup\Backup.txt
net use o: /delete
c:\psshutdown.exe \\office2 -u lciv -p flute -c -f -n 5 -t 60
ECHO _______________________________ >> H:\Setup\_Administration\Backup\Backup.txt
ECHO Office 3 >> H:\Setup\_Administration\Backup\Backup.txt
xcopy p:\*.* \\server-bd\backup\03-Wednesday\Office3 /i /e /y /q >> H:\Setup\_Administration\Backup\Backup.txt
net use p: /delete
c:\psshutdown.exe \\office3 -u lciv -p flute -c -f -n 5 -t 60
ECHO _______________________________ >> H:\Setup\_Administration\Backup\Backup.txt
ECHO Marketing >> H:\Setup\_Administration\Backup\Backup.txt
xcopy q:\*.* \\server-bd\backup\03-Wednesday\Marketing /i /e /y /q >> H:\Setup\_Administration\Backup\Backup.txt
net use q: /delete
c:\psshutdown.exe \\marketing -u lciv -p flute -c -f -n 5 -t 60
ECHO _______________________________ >> H:\Setup\_Administration\Backup\Backup.txt
ECHO Copy-Material >> H:\Setup\_Administration\Backup\Backup.txt
xcopy r:\*.* \\server-bd\backup\03-Wednesday\Copy-Material /i /e /y /q >> H:\Setup\_Administration\Backup\Backup.txt
net use r: /delete
c:\psshutdown.exe \\Copy-Material -u lciv -p flute -c -f -n 5 -t 60
ECHO _______________________________ >> H:\Setup\_Administration\Backup\Backup.txt
ECHO Admin1Share >> H:\Setup\_Administration\Backup\Backup.txt
xcopy H:\Admin1Share\*.* \\server-bd\backup\03-Wednesday\Admin1Share /i /e /h /y /q >> H:\Setup\_Administration\Backup\Backup.txt
ECHO ------------------------------------------------------- >> H:\Setup\_Administration\Backup\Backup.txt
ECHO ------------------------------------------------------- >> H:\Setup\_Administration\Backup\Backup.txt
ECHO ------------------------------------------------------- >> H:\Setup\_Administration\Backup\Backup.txt
ECHO ------------------------------------------------------- >> H:\Setup\_Administration\Backup\Backup.txt
ECHO Finnish Time >> H:\Setup\_Administration\Backup\Backup.txt
time /t >> H:\Setup\_Administration\Backup\Backup.txt
exit[/color]
[color=blue]Wed 09/06/2006
9:01p
-------------------------------------------------------
-------------------------------------------------------
-------------------------------------------------------
-------------------------------------------------------
Reception
1194 File(s) copied
_______________________________
Office 1
0 File(s) copied
_______________________________
Office 2
2182 File(s) copied
_______________________________
Office 3
_______________________________
Marketing
2912 File(s) copied
_______________________________
Copy-Material
485 File(s) copied
_______________________________
Admin1Share
15974 File(s) copied
-------------------------------------------------------
-------------------------------------------------------
-------------------------------------------------------
-------------------------------------------------------
Finnish Time
9:26p[/color]