Home > T-SQL-Scripts > Robocopy : Copy files

Robocopy : Copy files

Copy all files from the Source Folder

PS C:\> robocopy Source Destination
——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows
——————————————————————————-

Started : Tuesday, June 9, 2015 9:08:16 AM
Source : \\ServerName\z$\Backup\FULL\
Dest : G:\BACKUPS\VOL01\Restore\
Files : *.*
Options : *.* /DCOPY:DA /COPY:DAT /R:1000000 /W:30

Copy all files from the Source Folder excluding files

PS C:\> Robocopy.exe \\ServerName\z$\Backup\DIFF G:\BACKUPS\VOL01\Restore /XF Filename_20150608_200017*.*

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows
——————————————————————————-

Started : Wednesday, June 10, 2015 3:11:33 AM
Source : \\ServerName\z$\Backup\DIFF\
Dest : G:\BACKUPS\VOL01\Restore\
Files : *.*
Exc Files : Filename_20150608_200017*.*

Options : *.* /DCOPY:DA /COPY:DAT /R:1000000 /W:30

Categories: T-SQL-Scripts
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: