Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


SepticSceptic

2195 posts

Uber Geek

Trusted

#222602 20-Aug-2017 13:26
Send private message

As a part of my backup strategy, I'm using Robocopy to copy files from the Documents directory from a Win 10 laptop to a server.

 

Normal GUI copy and paste from the Win10 laptop to the destination works fine.

 

When I run Robocopy, it not only copies the documents, but a lot of files not specifically seen in the documents directory. In particular, all files from the My Pictures and My Music directories.

 

These directories are distinct directories from the C:\users\<user> tree. ie C:\users\<user>\documents, C:\users\<user>\music and C:\users\<user>\pictures.

 

This is the Robocopy command:

 

RoboCopy c:\users\<user>\documents \\<server>\<user> /E /XA:H /R:10 /W:10 /log+:"c:\copylogs.txt"

 

Is there something weird with the Win10 directory structure that I'm not seeing ?

 

Should I be using the /MIR instead of /E ?

 

Cheers

 

 SS


Create new topic
timmmay
20589 posts

Uber Geek

Trusted
Lifetime subscriber

  #1849203 20-Aug-2017 13:48
Send private message

Not an answer, but you're doing in incremental backup of those files once they're on the server, right?

 

 

 

I'd be looking for shortcuts or similar.




SepticSceptic

2195 posts

Uber Geek

Trusted

  #1849245 20-Aug-2017 14:56
Send private message

timmmay:

 

Not an answer, but you're doing in incremental backup of those files once they're on the server, right?

 

 

 

I'd be looking for shortcuts or similar.

 

 

Sure am :-)

 

Once they are on the server, they get backed up, as well as duplicated across HDD's on the server.

 

Files are backed up to external USB's.

 

All files are also copied, using Robocopy, to a HDD on another PC which is then in turn backed up to a Zoolz cold storage vault.

 

Robocopy works well as it does do incremental copies.

 

I had to add the extra last step as Zoolz doesn't allow the home edition to run on a server.

 

 


timmmay
20589 posts

Uber Geek

Trusted
Lifetime subscriber

  #1849251 20-Aug-2017 15:19
Send private message

SepticSceptic:

 

 

 

Robocopy works well as it does do incremental copies.

 

 

Robocopy is just a copy program. You really want proper incremental backup to protect against corruption, ransomware, etc. There's a huge thread on backups which could be interesting.




SepticSceptic

2195 posts

Uber Geek

Trusted

  #1849264 20-Aug-2017 16:03
Send private message

timmmay:

 

SepticSceptic:

 

 

 

Robocopy works well as it does do incremental copies.

 

 

Robocopy is just a copy program. You really want proper incremental backup to protect against corruption, ransomware, etc. There's a huge thread on backups which could be interesting.

 

 

True that - my bad.

 

Anyways, despite trawling thru directories, and some searching, I was unable to resolve my original issue - I'm sure it's something to do with Win 10 Libraries, but each directory still shows it's own dedicated directory - no shortcuts, no Library inclusions, etc.

 

In the end, I used Robocopy's /XD (Exclude Directory)

 

RoboCopy c:\users\<user>\documents \\<server>\<user> /XD "My Music" "My Pictures" /E /XA:H /R:10 /W:10 /log+:"c:\copylogs.txt"

 

It may not be incremental, but it copies only new files, and files that have been changed. 

 

 


timmmay
20589 posts

Uber Geek

Trusted
Lifetime subscriber

  #1849269 20-Aug-2017 16:24
Send private message

Yeah, like files corrupted by bad ram or encrypted by ransomware... :)


gzt

gzt
17159 posts

Uber Geek

Lifetime subscriber

  #1849284 20-Aug-2017 17:19
Send private message

SepticSceptic:Is there something weird with the Win10 directory structure that I'm not seeing ?

As timmmay mentioned in passing, it is likely there are some links of one kind or another pulling those files/directories into the backup. Robocopy has options for handling various kinds of links.

For diagnosis, dir has some options to list only those.

gzt

gzt
17159 posts

Uber Geek

Lifetime subscriber

  #1849326 20-Aug-2017 18:23
Send private message

Just checked. If you do a dir /a on the documents folder you will see them.

Robocopy has an option to copy those as junction points only. The commandline help says it is the default.

I'd also suggest a dir /a on your target to confirm what you are currently getting before making a change.

 
 
 

Trade NZ and US shares and funds with Sharesies (affiliate link).
1101
3122 posts

Uber Geek


  #1849655 21-Aug-2017 09:28
Send private message

Robocopy works just fine as an incremental backup. A backup is really just a copy from one device to another after all.
What you may be seeing is that Win is trying to hide some dir's from you & you are actually seeing those dirs on the copy
or robocopy is treating symbolic links a a real dir or actually copy the actual dir that those links point to

 

Robocopy can have issues with symbolic links/junction points . Theres a switch for that
Robocopy sometimes leaves all copied files hidden
Robocopy will only make a single copy, and will copy/overwrite the good backup with corrupt/infected files if your PC has corruption etc. Workaround is
to use multiple USB HD's or multiple backup dirs on the USB HD (eg backupMon, backupWed)
The log switch can sometimes cause issues , and you'll end up with a log file too big to be of much use . Del the log file every month or so.

 

 

 

I use these switches
robocopy c:\ u:\backup /b /e /R:0 /W:0 /xj /A-:RASHNT /LOG+:u:\logs\robobackup.txt /XD "System Volume Information"

 

And robocopy wont copy locked or open files . Thats when you need a true modern backup program, not an issue if you allow for that (eg Outlook must be
closed )

 

 

 

 

 

 


kiwicam
136 posts

Master Geek


  #1849663 21-Aug-2017 09:39
Send private message

1101:

 

Robocopy works just fine as an incremental backup. A backup is really just a copy from one device to another after all.

 

 

A backup should be a bit more than just a copy from one device to another. The risk with Robocopy isn't the incremental aspect - that's just for efficiency. This risk is that without some scripting or other setup there's no versioning/history.  If a file becomes corrupted, or encrypted by ransomware, you may miss the opportunity to restore the file before robocopy updates your backup copy and makes it a corrupted/encrypted version too.


timmmay
20589 posts

Uber Geek

Trusted
Lifetime subscriber

  #1849672 21-Aug-2017 10:03
Send private message

1101:

 

Robocopy works just fine as an incremental backup. A backup is really just a copy from one device to another after all.

 

 

It doesn't do an incremental backup at all. Maybe it only copies information that's changed, but that's quite different from an incremental backup that keeps versions of files.


kiwicam
136 posts

Master Geek


  #1849695 21-Aug-2017 10:19
Send private message

timmmay:

 

1101:

 

Robocopy works just fine as an incremental backup. A backup is really just a copy from one device to another after all.

 

 

It doesn't do an incremental backup at all. Maybe it only copies information that's changed, but that's quite different from an incremental backup that keeps versions of files.

 

 

I think the confusion here is just around terminology. Incremental does not equal versioning. Incremental means backing up only changes, as opposed to a full backup that just re-backs up everything again - which Robocopy does thou not as efficiently as a commercial backup suite.

 

I believe @timmmay's concern is related to versioning. He's probably not too worried about how long your backup takes or how much storage you need :-)


SepticSceptic

2195 posts

Uber Geek

Trusted

  #1855215 30-Aug-2017 12:15
Send private message

Thanks all for your replies.

 

 

 

Have sorted it out using the /XJ switch in Robocopy.

 

 

 

And yes, DIR /a did show the junction points for the other directories.

 

 


nathan
5695 posts

Uber Geek
Inactive user


  #1856669 1-Sep-2017 14:45
Send private message

In my mind (and I could totally have this wrong, it's been a while since I was a tech) incremental also implies delta copies, which AFAIK Robocopy doesn't do.

It will copy changes but at the file level

Not so much of an issue on a home LAN

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.