Link to home
Start Free TrialLog in
Avatar of kenny_klbn
kenny_klbnFlag for Brunei Darussalam

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?
Avatar of AnilKumarSharma
AnilKumarSharma
Flag of India image

User scheduler application to call the batch file that contain your xcopy command and logic etc.

Avatar of merowinger
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\week1 /S /E /Y

Scheduled Task 2:
xcopy C:\share \\192.168.1.9\c$\backup\week2 /S /E /Y

Scheduled Task 3:
xcopy C:\share \\192.168.1.9\c$\backup\week3 /S /E /Y

Scheduled Task 4:
xcopy C:\share \\192.168.1.9\c$\backup\week4 /S /E /Y
If you want a script anyway whihc is executed once per week with one scheduled task, then check the code below>
ASKER CERTIFIED SOLUTION
Avatar of merowinger
merowinger
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
Need further information?
Avatar of kenny_klbn

ASKER

Hi merowinger,
sorry for late reply. Im still testing the script. will feedback once done.