home | about | newsletters | contact | advertising | Shop | radio | membership | site map

Helping Normal People Get Their Geek On And Live The Digital Lifestyle

Free and Premium. Why Register?

Login: Password: Remember me

Easily Maintain A Mirrored Directory Structure

Posted Jul 4, 2008 by Jason Faulkner  

At work, I have a network location set up and have pointed each user’s ‘My Documents’ folder to a folder with their name on this server. The benefit to this is I can backup just a single location nightly and it includes each user’s documents in the backup automatically. Of course, users love to put virtually everything on their desktop which, obviously, does not get included in my nightly backup.

To remedy this, I have created a Robocopy command which mirrors the user’s desktop to a folder on the server:

robocopy “source_directory” “destination_directory” /V /S /E /COPY:DAT /PURGE /MIR /NP /R:10 /W:30

The source is the desktop folder and the destination is folder on the server. The great thing about this command is that the file/folder structure is mirrored every time the command runs. So if the user deletes/renames files, the server location is updated appropriately. Nifty.

I have this command scheduled to run on each user’s computer at 11:30 every night, which gives the task plenty of time to complete the sync before the server backup starts.

Feel Like a Turtle When It Comes to Today's Tech?

Our silver and gold membership programs provide the premium information you need to strap a rocket on and fly. Premium content, exclusive members-only newsletter, no advertising, offline access, and more. Get the Inside Scoop.

About the Author

Jason Faulkner is the man who brings you our daily tips. He is based in Atlanta, Georgia.

Free Weekly Newsletter

Name:
Email:
 

Featured Product of The Week

Getting Started with Ubuntu Linux

Getting Started with Ubuntu Linux

Now Playing on PCMech Video

Feature ImageGoogle Chrome (Video)

Feature ImageHow-To: Mass Rename Files in Windows XP/Vista

See All Videos | PCMech Channel Youtube Channel