Closed Thread Icon

Topic awaiting preservation: Is this ever possible? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=6434" title="Pages that link to Topic awaiting preservation: Is this ever possible? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Is this ever possible? <span class="small">(Page 1 of 1)</span>\

 
Pimms One
Bipolar (III) Inmate

From: Australia
Insane since: Jun 2003

posted posted 06-20-2003 05:53

I would like to do a daily backup on a directory in Windows 2000. Using a .bat file. I was thinking to create a directory each day, and then just use xcopy to copy the files I wanted to bacukp. I have tried many attempts, but not able to create the directory based on date? i.e.

C:\backup\11-06-2003
C:\backup\12-06-2003
.
.

Can someone please advice me of any way of doing this, other alternative or am I heading for something which is totally impossible?

Thank you.

Pimms


Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-20-2003 09:35

hm... a little unsure where your problem actually lies...
a little

code:
%source%="c:\my files"
%target%="d:\backup\%date%"

md %target%
xcopy %source% %target% /m /s /v /c /i /f /h /k /o /x /y


should do the trick.

so long,
Tyberius Prime
Ps: You still should look into that xcopy parameter list. It's mostly from memory ;-)

« BackwardsOnwards »

Show Forum Drop Down Menu