Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: r-kPosted on 2006-06-17 at 00:07:57ID: 16925757
Just create a .bat file (e.g. daily.bat) with the following lines in it (use Notepad)
Rem /s means all subdirectories also
Rem /e means empty folders also
Rem /c means ignore errors
Rem /f means full display in console window
Rem /h means hidden files also copied
Rem /d means copy only those files that have changed
Rem /y means do not prompt for overwriting existing files
Rem /o means retain file ownership and acl info
xcopy C:\Documents and Settings\<username>\*.* /s/e e:\Backup\ /c/f/h/d/y/o /exclude:exclude.txt
where <username> is your login username. Note that the above example will copy more than just "My Documents" but you can easily modify that, though I do recommend that you copy everything as is in the example.
Also create a file named "exclude.txt" in the same place as daily.bat and insert the following one line in it:
Temporary Internet Files
This will exclude the Internet cache files from being backed up.
Then just use the "Scheduled Tasks" control panel to schedule the daily.bat file to run once a day.
As with all backups, double-check to make sure things are working as expected.