Monday, 27 February 2017

How to take regular backup the files (automatically)

How to Backup your files automatic

Robocopy is a Windows command-line utility which is used to backup the files. It also helps to generate detailed report of the backup operation.It works with the .bat file which is created through notepad. Read the steps below.

Open a blank notepad
type Robocopy
copy the source folder path
Space
copy destination folder path
Space
Type /E in the end of line
Enter
Type Pause

It will look like

robocopy D:\backup Z:\27022017 /E
Pause 


Pause defines that the command prompt should remain open after completion of the backup task. It shows the Summary in the command line window when done.

Next Save it by any of your favorite name with .bat format extension. Now run this bat file as administrator and your file backup is started. After it finishes copy, detailed report is shown.

After /E you can put /XD to exclude the files or folders. Suppose I want to copy whole backup folder but don't want to copy a folder named as 'Old' lying inside it. 


robocopy D:\backup Z:\27022017 /E /XD "Old"

If you want to add more exclusions give a space and add another name. To Automate Read my next post "Run program automatically"


 

No comments:

Post a Comment