kenny_klbn
asked on
windows xp xcopy
hi experts,
The user PC is 192.168.1.2
The user share folder is c:\share
The remote backup PC is 192.168.1.9
The backup folders are
c:\backup\week1
c:\backup\week2
c:\backup\week3
c:\backup\week4
How do i script xcopy to schedule a backup of c:\share, once a week to folders like week1, week2, week3, week4 and week5 and overwrite the contents in each folder once a month?
The user PC is 192.168.1.2
The user share folder is c:\share
The remote backup PC is 192.168.1.9
The backup folders are
c:\backup\week1
c:\backup\week2
c:\backup\week3
c:\backup\week4
How do i script xcopy to schedule a backup of c:\share, once a week to folders like week1, week2, week3, week4 and week5 and overwrite the contents in each folder once a month?
User scheduler application to call the batch file that contain your xcopy command and logic etc.
better way would be to create 4 backup jobs which are scheduled on you specific time and execute the copyjob to the specific week
Scheduled Task 1:
xcopy C:\share \\192.168.1.9\c$\backup\we ek1 /S /E /Y
Scheduled Task 2:
xcopy C:\share \\192.168.1.9\c$\backup\we ek2 /S /E /Y
Scheduled Task 3:
xcopy C:\share \\192.168.1.9\c$\backup\we ek3 /S /E /Y
Scheduled Task 4:
xcopy C:\share \\192.168.1.9\c$\backup\we ek4 /S /E /Y
If you want a script anyway whihc is executed once per week with one scheduled task, then check the code below>
Scheduled Task 1:
xcopy C:\share \\192.168.1.9\c$\backup\we
Scheduled Task 2:
xcopy C:\share \\192.168.1.9\c$\backup\we
Scheduled Task 3:
xcopy C:\share \\192.168.1.9\c$\backup\we
Scheduled Task 4:
xcopy C:\share \\192.168.1.9\c$\backup\we
If you want a script anyway whihc is executed once per week with one scheduled task, then check the code below>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Need further information?
ASKER
Hi merowinger,
sorry for late reply. Im still testing the script. will feedback once done.
sorry for late reply. Im still testing the script. will feedback once done.