How to Backup Files from Command Prompt Windows 10

Posted by @Ada

September 30, 2017

Want to know how to backup files from command prompt in Windows 10? Go ahead and see this article, it will show you how to do it easily.

Necessity for file backup

Want to backup files from command prompt in Windows 10? Somebody may say it is unnecessary if already has a full backup. In contrast, I think it is quite necessary.

Creating a full backup is a secure way to keep all your data in protection. But it will occupy much storage and time. Also, it will backup those files and folders you do not need. While file backup only backup the specific files and folders you want. This will save much time and storage.

Backup files from Robocopy command prompt in Windows 10

Robocopy, or "Robust File Copy", is a command-line directory and/or file replication command. Robocopy functionally replaces Xcopy, with more options.

If you want to have an additional copy of your important personal and working files just to be on the safe side. While you can easily do so by copying your files and folders to another place via drag and drop. But, it can be a tedious operation.

Luckily, Robocopy provides more than 80 command-line parameters and switches that will allow you to create a powerful data backup operation. 

For example, If I want to back up the data file contents of my user profile, C:\Users\William, to a folder named FileBackup on an external hard disk, which is assigned drive letter H. (You'll, of course, replace the path and name with your own.) The basic command begins with:

Robocopy "C:\User\William" "H:\FileBackup"

If I do not want to backup the hidden system files, I can use this command: /XA:SH. Then the command should be:

Robocopy "C:\User\William" "H:\FileBackup" /XA:SH

There are still much more parameters to be known, it would be dazzling to introduce them all. To know more parameters about Robocopy, open command line and type Robocopy /? It will show you a detailed list.

Robocopy Command

Backup files using Robocopy command prompt in windows 10 is a perfect way to keep files and folders in secure. However, the least of perfection is Robocopy does not backup open files. Next, I will introduce you an easier way to backup files.

A more flexible way to backup files and folders in Windows 10

AOMEI backupper Professional is an awesome backup software. The File Backup feature allows you to backup files and folders to specified image files easily. And you are able to specify which files and folders to back up as well as set filters such as a file inclusion/exclusion mask, a folder exclusion mask, and whether or not to exclude hidden files/folders and system files/folders. 

With AOMEI Backupper, you can backup files and folders in Graphical User Interface with only a few clicks. You do not have to figure out all the parameters about. Let’s see how to backup files and folders with AOMEI Backupper.

Step 1: In the left tab page, select Backup and then select File Backup.

Step 2: You can enter a name for the backup in the "Task Name" box, such as "My File Backup" to help you distinguish it from other backups. Click Add File or Add Folder based on your needs.

File Backup

Step 3: Click Brower to select which files and folders to backup.

File Inclusion

You can also click Filter settings to set file inclusion and exclusion. There are File Inclusion Mask, File Exclusion Mask, and Folder Exclusion Mask.

If you do not want to backup hidden files and folders, system files and folders, just tick Exclude hidden files and folders or tick Exclude system files and folders.

Step 4: After you set file inclusion and exclusion, click OK and turn to File Backup page. Click Step 2 to select another location as the destination path. You can choose a hard disk, network share or NAS, or a cloud as backup destination.

Click Backup Options, Schedule, Scheme at the lower part of the page.

Backup Options: Here you can enable encryption and email notification.

Schedule: Click Schedule to set up an automatic backup with daily, weekly, monthly. You can setup incremental/differential backup here by clicking Advance.

Scheme: Tick Enable Disk Space Management to delete older backups if it exceeds the number of versions you set.

AOMEI Backupper is not only a backup software, but also a perfect system restore and disk clone software.You can bacup system, disk, and partition, then disaster comes, you can use the backup to restore system, disk and partition. You can even restore to a dissimilar hardware with Universal restore feature. It is designed for Windows 10/8.1/8/7, Windows Visa and Windows XP.

 The disk clone feature allows you to make an exact copy of hard drive. If you want to migrate OS to SSD and keep data on the original drive, do not hesitate to use system clone feature.

To summarize, there are two ways to backup files and folders: backup files from Robocopy command line in Windows 10 and backup files with AOMEI Backupper GUI. You can choose based on your preference.