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.


1725 posts

Uber Geek
+1 received by user: 342

Trusted

Topic # 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





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


Create new topic
13969 posts

Uber Geek
+1 received by user: 2488

Trusted
Subscriber

  Reply # 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.





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




1725 posts

Uber Geek
+1 received by user: 342

Trusted

  Reply # 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.

 

 





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


13969 posts

Uber Geek
+1 received by user: 2488

Trusted
Subscriber

  Reply # 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.





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




1725 posts

Uber Geek
+1 received by user: 342

Trusted

  Reply # 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. 

 

 





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


13969 posts

Uber Geek
+1 received by user: 2488

Trusted
Subscriber

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

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

9922 posts

Uber Geek
+1 received by user: 1492


  Reply # 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

9922 posts

Uber Geek
+1 received by user: 1492


  Reply # 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.

1464 posts

Uber Geek
+1 received by user: 330


  Reply # 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 )

 

 

 

 

 

 


113 posts

Master Geek
+1 received by user: 34


  Reply # 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.


13969 posts

Uber Geek
+1 received by user: 2488

Trusted
Subscriber

  Reply # 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.





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


113 posts

Master Geek
+1 received by user: 34


  Reply # 1849695 21-Aug-2017 10:19
One person supports this post
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 :-)




1725 posts

Uber Geek
+1 received by user: 342

Trusted

  Reply # 1855215 30-Aug-2017 12:15
One person supports this post
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.

 

 





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


4956 posts

Uber Geek
+1 received by user: 1318

Trusted
Microsoft

  Reply # 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

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 »

Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07



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.