File synchronization windows 20032/20/2023 ![]() ![]() 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. ? Was this helpful? Please add a comment to show your appreciation or feedback ↓ Join the nixCraft community via RSS Feed, Email Newsletter or follow on Twitter. 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. Right click > Properties > Sharing tab > Share this folder > Add $ at the end of share name and save the changes.Ĭ:>"c:\program files\windows resource kits\tools\robocopy.exe d:\inetpub\file.First create hidden share on www2 (secondary server) Now let us assume that you want to sync d:\Inetpub\wwwroot\ directory between two Windows server. By default robocopy located at c:\Program Files\Windows Resource Kits\Tools\robocopy.exe. Once tool is downloaded, install the Resource Kit. You can download robocopy.exe and other files from Windows 2003 Resource Kit Tools set. For Microsoft Windows 2003 server use robocopy tool, to sync files between two windows server. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |