Thursday, 1 October 2015

Data Copy(EUC user Data)

Robocopy can be used for Data migration 


Robocopy (Robust File Copy) is a command-line file copy utility that comes with Windows Vista / Windows 2008 or newer. Until Vista, Robocopy was a part of  Windows Resource Kit Tools as a free download (http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en This link is external to TechNet Wiki. It will open in a new window. ). Unlike normal copy commands, Robocopy is designed for reliable copy or mirroring while maintaining the permissions, attributes, owner information, timestamps and properties of the objects copied.





         ============================================================
robocopy "F:\Folder1\FOLDER2" "\\fileshare\myfile\Charvo" /MIR /SEC /secfix /R:5 /W:5
        ============================================================



Robocopy syntax

ROBOCOPY source destination [file [file]...] [options]
sourceSource Directory (drive:\path or \\server\share\path)
destinationDestination Dir (drive:\path or \\server\share\path)
fileFile(s) to copy (names/wildcards: default is "*.*")
Copy options
/SCopy Subdirectories, but not empty ones.
/ECopy subdirectories, including Empty ones.
/LEV:nOnly copy the top n LEVels of the source directory tree.
/ZCopy files in restartable mode.
/BCopy files in Backup mode.
/ZBUse restartable mode; if access denied use Backup mode.
/EFSRAWCopy all encrypted files in EFS RAW mode.
/COPY:copyflag[s]What to COPY for files (default is /COPY:DAT).
(copyflags : D=Data, A=Attributes, T=Timestamps).
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
/DCOPY:TCOPY Directory Timestamps.
/SECCopy files with SECurity (equivalent to /COPY:DATS).
/COPYALLCOPY ALL file info (equivalent to /COPY:DATSOU).
/NOCOPYCOPY NO file info (useful with /PURGE).
/SECFIXFIX file SECurity on all files, even skipped files.
/TIMFIXFIX file TIMes on all files, even skipped files.
/PURGEDelete dest files/dirs that no longer exist in source.
/MIRMIRror a directory tree (equivalent to /E plus /PURGE).
/MOVMOVe files (delete from source after copying).
/MOVEMOVE files AND dirs (delete from source after copying).
/A+:[RASHCNET]Add the given Attributes to copied files.
/A-:[RASHCNET]Remove the given Attributes from copied files.
/CREATECREATE directory tree and zero-length files only.
/FATCreate destination files using 8.3 FAT file names only.
/256Turn off very long path (> 256 characters) support.
/MON:nMONitor source; run again when more than n changes seen.
/MOT:mMOnitor source; run again in m minutes Time, if changed.
/RH:hhmm-hhmmRun Hours - times when new copies may be started.
/PFCheck run hours on a Per File (not per pass) basis.
/IPG:nInter-Packet Gap (ms), to free bandwidth on slow lines.
/SLCopy symbolic links versus the target.
/MT[:n]Do multi-threaded copies with n threads (default 8).
n must be at least 1 and not greater than 128.
This option is incompatible with the /IPG and /EFSRAW options.
Redirect output using /LOG option for better performance.
File Selection Options
/ACopy only files with the Archive attribute set.
/MCopy only files with the Archive attribute and reset it.
/IA:[RASHCNETO]Include only files with any of the given Attributes set.
/XA:[RASHCNETO]eXclude files with any of the given Attributes set.
/XF file [file]...eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]...eXclude Directories matching given names/paths.
/XCeXclude Changed files.
/XNeXclude Newer files.
/XOeXclude Older files.
/XXeXclude eXtra files and directories.
/XLeXclude Lonely files and directories.
/ISInclude Same files.
/ITInclude Tweaked files.
/MAX:nMAXimum file size - exclude files bigger than n bytes.
/MIN:nMINimum file size - exclude files smaller than n bytes.
/MAXAGE:nMAXimum file AGE - exclude files older than n days/date.
/MINAGE:nMINimum file AGE - exclude files newer than n days/date.
/MAXLAD:nMAXimum Last Access Date - exclude files unused since n.
/MINLAD:nMINimum Last Access Date - exclude files used since n.
(If n < 1900 then n = n days, else n = YYYYMMDD date).
/XJeXclude Junction points. (normally included by default).
/FFTAssume FAT File Times (2-second granularity).
/DSTCompensate for one-hour DST time differences.
/XJDeXclude Junction points for Directories.
/XJFeXclude Junction points for Files.
Retry Options
/R:nNumber of Retries on failed copies: default 1 million.
/W:nWait time between retries: default is 30 seconds.
/REGSave /R:n and /W:n in the Registry as default settings.
/TBDWait for sharenames To Be Defined (retry error 67).
Logging Options
/LList only - don't copy, timestamp or delete any files.
/XReport all eXtra files, not just those selected.
/VProduce Verbose output, showing skipped files.
/TSInclude source file Time Stamps in the output.
/FPInclude Full Pathname of files in the output.
/BYTESPrint sizes as bytes.
/NSNo Size - don't log file sizes.
/NCNo Class - don't log file classes.
/NFLNo File List - don't log file names.
/NDLNo Directory List - don't log directory names.
/NPNo Progress - don't display percentage copied.
/ETAShow Estimated Time of Arrival of copied files.
/LOG:fileOutput status to LOG file (overwrite existing log).
/LOG+:fileOutput status to LOG file (append to existing log).
/UNILOG:fileOutput status to LOG file as UNICODE (overwrite existing log).
/UNILOG+:fileOutput status to LOG file as UNICODE (append to existing log).
/TEEOutput to console window, as well as the log file.
/NJHNo Job Header.
/NJSNo Job Summary.
/UNICODEOutput status as UNICODE.
Job Options
/JOB:jobnameTake parameters from the named JOB file.
/SAVE:jobnameSAVE parameters to the named job file.
/QUITQUIT after processing command line (to view parameters).
/NOSDNO Source Directory is specified.
/NODDNO Destination Directory is specified.
/IFInclude the following Files.