Using ROBOCOPY to perform back ups

Various changes to the Windows Operating System, also for the Intranet

Moderator: sjj1805

Post Reply
User avatar
sjj1805
Site Admin
Posts: 1197
Joined: Fri Oct 27, 2006 12:45 am
operating_system: Windows 10 Pro
motherboard: Hewlett Packard 2AF7
system_drive: C
32bit or 64bit: 64 Bit
processor: 2-90 gigahertz Intel Core i5 4460S
ram: 8 GB
video card: NVIDIA GeForce GT 705
sound card: P40D100-4 NVIDIA High Definition Audio
Hard_Drive_Capacity: 8 TB
Location: Birmingham UK
Contact:

Using ROBOCOPY to perform back ups

Post by sjj1805 » Tue May 11, 2021 10:30 am

ROBOCOPY C:\source\ M:\Backup\destination\ /XO
ROBOCOPY C:\source\ M:\Backup\destination\ /MIR

/XO will add new or changed files but not remove any
/MIR means "Mirror" and so it will replicate the source directory including removing files that no longer exist.
Used in conjunction with the built in Windows Task Scheduler you can create your own set it and forget it back ups

To copy files using a wildcard is somewhat different to what you might expect.
This example will copy all the changed "PST" *Microsoft outlook data files" from drive B to a directory on drive M
ROBOCOPY B:\ M:\Backup\Tue\ *.pst /XO

The syntax is
ROBOCOPY source destination\ *.wildcard /XO

Post Reply