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.




1578 posts

Uber Geek
+1 received by user: 251

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
13245 posts

Uber Geek
+1 received by user: 2216

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




1578 posts

Uber Geek
+1 received by user: 251

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


 
 
 
 


13245 posts

Uber Geek
+1 received by user: 2216

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




1578 posts

Uber Geek
+1 received by user: 251

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


13245 posts

Uber Geek
+1 received by user: 2216

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

9150 posts

Uber Geek
+1 received by user: 1290


  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

9150 posts

Uber Geek
+1 received by user: 1290


  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.

1211 posts

Uber Geek
+1 received by user: 244


  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 )

 

 

 

 

 

 


101 posts

Master Geek
+1 received by user: 28


  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.


13245 posts

Uber Geek
+1 received by user: 2216

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


101 posts

Master Geek
+1 received by user: 28


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




1578 posts

Uber Geek
+1 received by user: 251

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


4937 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 »

Netatmo launches smart home products in New Zealand
Posted 20-Nov-2017 20:06


Huawei Mate 10: Punchy, long battery life, artificial intelligence
Posted 20-Nov-2017 16:30


Propel launch Disney Star Wars Laser Battle Drones
Posted 19-Nov-2017 21:26


UFB killer app: Speed
Posted 17-Nov-2017 17:01


The case for RSS — MacSparky
Posted 13-Nov-2017 14:35


WordPress and Indieweb: Take control of your online presence — 6:30 GridAKL Nov 30
Posted 11-Nov-2017 13:43


Chorus reveals technology upgrade for schools, students
Posted 10-Nov-2017 10:28


Vodafone says Internet of Things (IoT) crucial for digital transformation
Posted 10-Nov-2017 10:06


Police and Facebook launch AMBER Alerts system in NZ
Posted 9-Nov-2017 10:49


Amazon debuts Fire TV Stick Basic Edition in over 100 new countries
Posted 8-Nov-2017 05:34


Vodafone VoIP transition to start this month
Posted 7-Nov-2017 12:33


Spark enhances IoT network capability
Posted 7-Nov-2017 11:33


Vocus NZ sale and broadband competition
Posted 6-Nov-2017 14:36


Hawaiki reaches key milestone in landmark deep-sea fibre project
Posted 4-Nov-2017 13:53


Countdown launches new proximity online shopping app
Posted 4-Nov-2017 13:50



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.