Trying to sync (copy via robocopy) a drive from my work desktop to a NAS 2TB hard drive.
Here is the batch file I've been using for a long time that is now not working:
Above is with /R:0 /W:0 /B /XJD /XJF that I just added but it makes no difference except it now ends on the first error. What I want robocopy to do is ignore the error and continue. Any way to do that?
Edit: How do I stop the editor from changing : D to the smiley face?
Here is the batch file I've been using for a long time that is now not working:
Rem Copy new or changed files from "er2_d" to NAS
robocopy "\\Ascthrifter2\er2_d" "\\172.16.103.182\public\2022-06-23" /E /XD "Dell Optiplex 5010 Backups" "Lenovo Ideacenter K450e Type 90B3 Backups" "$RECYCLE.BIN""System Volume Information" /DCOPY:DAT /IS /R:0 /W:0 /B /XJD /XJF
pause
Above is with /R:0 /W:0 /B /XJD /XJF that I just added but it makes no difference except it now ends on the first error. What I want robocopy to do is ignore the error and continue. Any way to do that?
C:\Windows\System32>Rem Copy new or changed files from "er2_d" to NAS
C:\Windows\System32>robocopy "\\Ascthrifter2\er2_d" "\\172.16.103.182\public\2022-06-23" /E /XD "Dell Optiplex 5010 Backups" "Lenovo Ideacenter K450e Type 90B3 Backups" "$RECYCLE.BIN" "System Volume Information" /DCOPY:DAT /IS /R:0 /W:0 /B /XJD /XJF
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Thursday, April 11, 2024 3:49:01 PM
Source : \\Ascthrifter2\er2_d\
Dest : \\172.16.103.182\public\2022-06-23\
Files : *.*
Exc Dirs : Dell Optiplex 5010 Backups
Lenovo Ideacenter K450e Type 90B3 Backups
$RECYCLE.BIN
System Volume Information
Options : *.* /S /E /DCOPY:DAT /B /IS /XJF /XJD /R:0 /W:0
------------------------------------------------------------------------------
14 \\Ascthrifter2\er2_d\
2024/04/11 15:49:01 ERROR 5 (0x00000005) Changing File Attributes \\172.16.103.182\public\2022-06-23\
Access is denied.
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 0 0 0 0 0 0
Bytes : 0 0 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Thursday, April 11, 2024 3:49:01 PM
Edit: How do I stop the editor from changing : D to the smiley face?
Last edited:
My Computer
System One
-
- OS
- Windows 11 Pro X64 22H2 22621.1848
- Computer type
- PC/Desktop
- Manufacturer/Model
- Lenovo IdeaCenter K450
- CPU
- Intel Quad Core i7-4770 @ 3.4Ghz 4th Gen
- Memory
- 16.0GB PC3-12800 DDR3 SDRAM
- Graphics Card(s)
- EVGA GeForce GTX 780
- Sound Card
- Realtek HD Audio
- Monitor(s) Displays
- Samsung C27F398 27" Curved
- Screen Resolution
- 1920x1080
- Hard Drives
- 1.0TB Samsung QVO 860 SSD SATA-6GB;
2TB Seagate ST2000NM0011 72K SATA-6GB;
2TB Seagate ST2000DM006-2DM164 72K SATA-6GB
- PSU
- CoolerMaster MasterWatt 550 Watt Semifanless Modular
- Keyboard
- Dell USB (KVMS)
- Mouse
- Logitec USB (KVMS)
- Internet Speed
- 484.75MB Down, 23.59MB Up
- Browser
- Firefox, Edge - eM Client Pro for E-Mail
- Antivirus
- Windows Defender; MBAM Premium
- Other Info
- Purchased December 2013, many upgrades since then