REM /XA:H :: Excludes files with hidden attribute REM Refer to the robocopy documentation for more details. SET exclude_files=/XF *.bak *.tmp index.dat usrclass.dat* ntuser.dat* *.lock *.swp SET exclude_dirs=/XD “Temporary Internet Files” “Cache” “Recent” “Cookies” “iPod Photo Cache” “MachineKeys” “All Users” “Default User” “LocalService” “NetworkService” “Application Data” “Local Settings” “My Recent Documents” “NetHood” “PrintHood” “SendTo” “Templates” REM Exclude some files and directories that include transient data REM /L :: Just list the info, don’t actually do it REM /COPY:DAT :: COPY file data, attributes, and timestamps REM See the robocopy documentation for what each command does. SET log_fname=\\server\share\BackupReportLog.txt SET robo_path=C:\Windows\System32\robocopy.exe Test before applying to a real environment. Copy the below script to a notepad and amend paths and exclusions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |