Download EXCLUSIVE Robocopy

Racquel Paulauskas <[email protected]> Sun, 21 Jan 2024 01:02:55 -0800 (PST)
Newsgroups alt.books.roger-zelazny
Message-ID <[email protected]>
<div>CAUTION: A long-standing issue with Robocopy means that if you back up from the root folder of a drive [ e.g., robocopy d:\ b:\d-backup\ ....], the destination files will be given attributes including SH. This means that they will be invisible to normal access (including DIR in cmd.exe). To fix this, add /a-:SH to the robocopy command line - or do an ATTRIB command to remove them afterwards.</div><div></div><div></div><div></div><div></div><div></div><div>download robocopy</div><div></div><div>Download: https://t.co/94e1IPkvUI </div><div></div><div></div><div>It does the initial copy without errors. In the second run I ant to copy only changed files, but robcopy incorrectly recognizes everythig as changed and does the whole job again. Between two Windows servers robocopy works as expected. Only modified files are transferred in the second run.</div><div></div><div></div><div>Via robocopy /debug and some subsequent testing I came to realize it's something about permissions. When I do /COPY:DAT it's just fine, when I do /COPY:DATS (to include ACLs) it all goes wrong. I don't think the files are actually copied (it's too fast for that) but I guess Robocopy tries to fix ACLs or something - and fails, because they are of course identical. (The ACLs and SDDLs look the same on source and destination). Still it's much slower than when it dosn't really do anything.</div><div></div><div></div><div>Also having this exact issue. If I robocopy to Windows, each directory without changes it only displays the directory name and local file count. If I robocopy to the Netapp, it lists every file but does not say "Newer or New File" next to the unchanged files.</div><div></div><div></div><div>I did an initial robocopy /MIR /COPYALL - which as expected creates a duplicate ot the folder and files. Every subsequent run of /MIR /COPYALL shows the problem we have - all files are marked as "Modified" although they are not. However as established, the files do not get copied.</div><div></div><div></div><div>See the difference? On the NetApp the "change" value for the file differs from the value on the Windows fileshare. The value does NOT change when I re-run robocopy by the way, on neither Windows nor NetApp.</div><div></div><div></div><div></div><div></div><div></div><div></div><div>So this is it them - when Robocopy copies a file to a Windows fileshare it actually successfully copies "changed" timestamp. But it is NOT able to do so on a NetApp fileshare where the value corresponds with the time when the file was actually copied. And since Robocopy is not able to properly fix this timestamp it "re-tries" to fix it every single time we run robocopy. So as I said earlier, this seems to me to be "on the NetApp side of things".</div><div></div><div></div><div> ChristianSmetwho reported ODX was the cause in his case (In Win to Cdot). Referred to "/NOOFFLOAD" robocopy switch (not tested) and ODX disable on vserver "set adv; vserver cifs options modify -vserver [name] -copy-offload-enabled false"</div><div></div><div></div><div>For example robocopy c:\folder1\folder2\*.* f:\folder3 /S will copy the contents of folder 2, and all subfolders, to folder3. If the name of a folder has a space in it, use quotes, for example robocopy "c:\folder 1\folder 2\*.*" "f:\folder 3" /S</div><div></div><div></div><div>In safe mode you can't use a windows GUI, but can use some filemanagers, like volkov commander, or better (but its'n which I use) farmanager, which it's actually the best that I know for console mode. I know that farmanager can call robocopy from the panels, but never try it in safe mode, and don't know if it can works, because far calls power shell and this it is not always available.</div><div></div><div></div><div>I believe you need to use the /FFT switch for robocopy. I had this issue initially as well with the Linux/Windows timestamps being slightly different. I also use the /COPYALL to preserve file and directory timestamps.</div><div></div><div></div><div>robocopy.exe D:\ "H:\D Drive " /E /MIR /DCOPY:T /COPY:DAT /XJ /R:0 /B /MT /XD "$RECYCLE.BIN" "System Volume Information" "D:\Movies" "D:\TV Shows" "D:\Music\Spotify"</div><div></div><div>attrib -h -s "D Drive"</div><div></div><div>pause</div><div></div><div></div><div>I have a 1400 files in a single folder on dropbox, called reports. There are roughly 4 report types. The report types are named in a way that I can't simply sort the folder alphabetically and grab the groups and copy/paste them to each report groups folder. So, I have been trying to use a batch file in windows to move each of the files to a new folder on desktop (not switching accounts or anything). Nothing I've tried seems to work - my question is : Is it even possible to use windows utility like xCopy or robocopy or shell commands to accomplish what I want to do? Or is it not possible?</div><div></div><div></div><div>In anycase, if the files one is desiring to move/copy are on the desktop, the OS tools can handle the mass move. You are correct. I used robocopy to move the files to the desired folders. I didn't realize that my original robocopy commands were formulated incorrectly.</div><div></div><div></div><div>I think the folder sensor would be ok for you. You can tell the sensor to check for file ages.But you have to move "older" logfiles to a subfolder. I would integrated a move command in the robocopy batch to move all old logfiles in to a subfolder before starting a new one. Then it is quite easy to manage with the folder sensor</div><div></div><div> df19127ead</div>