For copying the backup of a folder contents to another local folder.Here we need to take data backup from “c:\wamp\www” to another local folder in Drive F: (F:\Backup)
- Created new test document and copy the below mentioned script into it
- Finally Save the file as a .bat extension
@echo off
echo **** IT Tech Beats Backup Solution******
XCOPY C:\wamp\www\*.* F:\Backup\*.* /s /e
echo !!!!!!!!BACKUP COMPLETED THANKS!!!!!!!!
Where
/s ----> Copies folders and subfolders except for empty ones
/e ----> Copies directories and subdirectories, including empty ones
No comments:
Post a Comment