xcopy - Windows 11: How to back up

Backing up specific important folders, files, and documents in Windows 11 doesn't require expensive third-party software if you know how to use of commands.

hard drive

Windows 11 includes many features and applications for backing up system files in the cloud, but very few for backing up specific important files and folders created by users.

But what if you can not connect to the cloud and need to back up your important files?

Many years ago, when personal computers ran on DOS and command line commands, many people used a file copy and move application called xcopy. This app still exists, and it works through the command line in Windows 11. But the mysteries of how s have been lost along with the charm of the command line due to modern UIs.

How to use xcopy

The purpose of the xcopy application is relatively simple: You can copy or move files and folders from one location to another using various parameters and switches available in even the most basic xcopy application command. The xcopy command parameters are presented in this snippet published by Microsoft:

As you can see, the command can be very complicated depending on what you want it to do. Many professionals have made careers with their ability to create DOS commands for proper file backups.

Our example with xcopy commands will be much simpler. We will create an xcopy command that will copy all the files and subfolders from the standard Windows 11 Documents folder to a USB drive.

The first obstacle we have to overcome is the full path to our source. The xcopy application only responds to a correct path, so we need to be precise.

Open Windows Explorer and navigate to the current user's Documents folder. Then right click on the address, and you will be given the copy the path as text to the Windows 11 clipboard.

In our example, this route is:

C: \ iguru \ dimitris \ Documents

Our destination path will be a folder on the USB drive named F: \ Backups.

To make sure we copy the folder and all the files and subfolders it contains on the thumb drive, we'll use the following parameters:

/ s - Copies directories and subdirectories, unless empty. If you omit / s, xcopy works in a single directory.
/ v - verifies every copied file and folder.
/ a - copies files with all archiving features (archived files will be copied).

With these parameters, the xcopy command will be:

xcopy C:\iguru\dimitris\Documents F:\Backups /s /v /a

xcopy command prompt

To use xcopy, type cmd in the Windows 11 search box, and select Command Prompt from the list of results. Type or paste the xcopy command at the command prompt and press Enter.

Depending on the number of files, the process may take a few seconds or several minutes.

If you want to include empty folders in the files you transfer, you must add the / e switch to your command.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.100 registrants.
xcopy, Windows 11, iguru

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).