Robocopy copying folders from the wrong place

pafao

New member
Local time
9:16 AM
Messages
9
I've set up a back up batch file to copy my Documents, Pictures, Music, and Videos folders from my computer to an external hard drive.
However, while running the Documents backup, it seems to find, the pictures, music, and videos folders all inside the documents folders labelled "My Music", etc.
However, these folders do not exist. When I navigate in explorer to C:\Users\username\Documents\ I cannot find a folder labelled "My Music". When I try to navigate to C:\Users\username\Documents\My Music it tells me that "access is denied". I cannot find them through command line either.
As well, when I try and find the folders on the backup drive, they do not seem to be there either.
I just don't understand where this is coming from.
 

My Computer My Computer

Computer Manufacturer/Model Number
Toshiba
OS
Windows 7
CPU
intel i5
Memory
4GB
Graphics Card(s)
nvidia GT 330M
Hi,

It sounds like you are running foul of junction points. You may need to use the /XJ switch.

Post your BAT code here, and I'll take a look at it for you.

Regards,
Golden
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
I got around the problem by specifically excluding those folders, but I would like to know why exactly this happened in the first place. What are junction points?

Here's my batch file:


@echo off
::variables
set drive=F:

echo Backing up Documents
ROBOCOPY "C:\Users\*****\Documents" "%drive%\Documents" /MIR /XD "My Music" "My Pictures" "My Videos" /LOG+:"C:\Users\*****\Desktop\log.txt"

echo Backing up Music
ROBOCOPY "C:\Users\*****\Music" "%drive%\Music" /MIR /LOG+:"C:\Users\*****\Desktop\log.txt"

echo Backing up Videos
ROBOCOPY "C:\Users\*****\Videos" "%drive%\Video" /MIR /LOG+:"C:\Users\*****\Desktop\log.txt"

echo Backing up Pictures
ROBOCOPY "C:\Users\*****\Pictures" "%drive%\Pictures" /MIR /LOG+:"C:\Users\*****\Desktop\log.txt"

echo Finished Backup
 

My Computer My Computer

Computer Manufacturer/Model Number
Toshiba
OS
Windows 7
CPU
intel i5
Memory
4GB
Graphics Card(s)
nvidia GT 330M
Back
Top