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.




1542 posts

Uber Geek
+1 received by user: 239

Trusted

Topic # 222602 20-Aug-2017 13:26
Send private message quote this post

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





My thoughts are no longer my own and is probably representative of our media-controlled government


Create new topic
13074 posts

Uber Geek
+1 received by user: 2156

Trusted
Subscriber

  Reply # 1849203 20-Aug-2017 13:48
Send private message quote this post

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.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer




1542 posts

Uber Geek
+1 received by user: 239

Trusted

  Reply # 1849245 20-Aug-2017 14:56
Send private message quote this post

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.

 

 





My thoughts are no longer my own and is probably representative of our media-controlled government


 
 
 
 


13074 posts

Uber Geek
+1 received by user: 2156

Trusted
Subscriber

  Reply # 1849251 20-Aug-2017 15:19
Send private message quote this post

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.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer




1542 posts

Uber Geek
+1 received by user: 239

Trusted

  Reply # 1849264 20-Aug-2017 16:03
Send private message quote this post

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. 

 

 





My thoughts are no longer my own and is probably representative of our media-controlled government


13074 posts

Uber Geek
+1 received by user: 2156

Trusted
Subscriber

  Reply # 1849269 20-Aug-2017 16:24
Send private message quote this post

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





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


gzt

8992 posts

Uber Geek
+1 received by user: 1227


  Reply # 1849284 20-Aug-2017 17:19
Send private message quote this post

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

8992 posts

Uber Geek
+1 received by user: 1227


  Reply # 1849326 20-Aug-2017 18:23
Send private message quote this post

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.

1131 posts

Uber Geek
+1 received by user: 230


  Reply # 1849655 21-Aug-2017 09:28
Send private message quote this post

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 )

 

 

 

 

 

 


89 posts

Master Geek
+1 received by user: 26


  Reply # 1849663 21-Aug-2017 09:39
Send private message quote this post

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.


13074 posts

Uber Geek
+1 received by user: 2156

Trusted
Subscriber

  Reply # 1849672 21-Aug-2017 10:03
Send private message quote this post

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.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


89 posts

Master Geek
+1 received by user: 26


  Reply # 1849695 21-Aug-2017 10:19
One person supports this post
Send private message quote this post

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 :-)




1542 posts

Uber Geek
+1 received by user: 239

Trusted

  Reply # 1855215 30-Aug-2017 12:15
One person supports this post
Send private message quote this post

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.

 

 





My thoughts are no longer my own and is probably representative of our media-controlled government


4935 posts

Uber Geek
+1 received by user: 1314

Trusted
Microsoft

  Reply # 1856669 1-Sep-2017 14:45
Send private message quote this post

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



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

FUJIFILM introduces X-E3 mirrorless camera with wireless connectivity
Posted 18-Sep-2017 13:53


Vodafone announces new plans with bigger data bundles
Posted 15-Sep-2017 10:51


Skinny launches phone with support for te reo Maori
Posted 14-Sep-2017 08:39


If Vodafone dropping mail worries you, you’re doing online wrong
Posted 11-Sep-2017 13:54


Vodafone New Zealand deploy live 400 gigabit system
Posted 11-Sep-2017 11:07


OPPO camera phones now available at PB Tech
Posted 11-Sep-2017 09:56


Norton Wi-Fi Privacy — Easy, flawed VPN
Posted 11-Sep-2017 09:48


Lenovo reveals new ThinkPad A Series
Posted 8-Sep-2017 14:37


Huawei passes Apple for the first time to capture the second spot globally
Posted 8-Sep-2017 10:45


Vodafone initiative enhances te reo Maori pronunciation on Google Maps
Posted 8-Sep-2017 10:40


Voyager Internet expand local internet phone services company with Conversant acquisition
Posted 6-Sep-2017 18:27


NOW Expands in to Tauranga
Posted 5-Sep-2017 18:16


Windows 10 Fall Creators Update coming Oct. 17
Posted 4-Sep-2017 14:10


Garmin introduce Garmin vivoactive 3
Posted 1-Sep-2017 18:38


Kiwibank wastes $90 million on software – Reseller News
Posted 1-Sep-2017 13:45



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.

Alternatively, you can receive a daily email with Geekzone updates.