SET exclude_dirs=/XD "Temporary Internet Files" "Cache" "Recent" "Cookies" "iPod Photo Cache" "MachineKeys" 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. Finally, we get the day by moving 7 characters REM 2-digit month by moving 10 characters back and copying 2 REM copy 4 characters to get the 4-digit year, then we get the REM So, we are parsing the date by moving 4 characters back and REM The typical format for the date command is: REM will record the results from the robocopy command. REM Set the log file name based on the current date. ![]() REM This is the location where the files will be copied to REM This is the file that we're going to backup from our local drive There are many new parameters, you can add that from help I found this script in a web site long back. Please support the nixCraft with a PayPal donation or Patreon. Keeping the site online is challenging, with everyone blocking Ads ?. nixCraft is a one-person show, and many of you use Adblocker. ? Was this helpful? Please add a comment to show your appreciation or feedback. Join the nixCraft community via RSS Feed or Email Newsletter. He wrote more than 7k posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source.
0 Comments
Leave a Reply. |