Skip to main content
CommandsWindows

Backup through Batch File Full Backup & Incremental

By September 16, 2012November 23rd, 2019No Comments

Backup without any additional software. This command work for Windows OS Only.  

XCOPY “source\*” “destination\” /C/E/H/D/Y

!!switches that control the execution of XCOPY!!

/C/E/H/D/Y are switches that control the execution of XCOPY. They mean:
/C – Continue copying even if an error occurred (can happen if a file is opened by another program)
/E – Copy all subfolders even if they are empty
/H – Copy hidden files
/D – Essential switch for incremental backup.Note: If the backup copy is older than the source file. Then the Backup copy will be overwritten.
/Y – Overwrite existing files without asking