How to create backup batch file in Windows 10 - Eazytrix

Published: 29 November 2020
on channel: EazyTrix
2,010
35

For more informative content visit our website https://www.eazytrix.in/​
Subscribe: https://www.youtube.com/eazytrix01?su...
Facebook:   / eazytrixx​  
Twitter:   / eazytrix  

Download batch file from here: https://www.eazytrix.in/2020/10/how-t...

We are going to create a batch file that backup your Folder, Sub-folder and file data including hidden and empty files to your USB drive.

Command:
@echo off
xcopy C:\Eazytrix E:\ /S /E /H /I /C /Y

Meaning of this command:
@echo off: Turns off the on-screen text display for executed commands

/S: copy directories and subdirectories, unless they are empty. If you omit “/s”, xcopy will work within a single directory.

/E: copy all subdirectories, even if they are empty.

/H: copy files with hidden and system file attributes.

/I: if in doubt always assume the destination is a folder.

/C: continue copying even if an error occurs.

/Y: suppress prompt to confirm overwriting a file.