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
Using ROBOCOPY to perform back ups
Moderator: sjj1805
- sjj1805
- Site Admin
- Posts: 1197
- Joined: Fri Oct 27, 2006 12:45 am
- 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: