Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Robocopy backup for personal folders

03 Mar 2012   #1
choopy

windows 7 home premium 64 bit
 
 
Robocopy backup for personal folders

I have created a batch file for copying my Documents folder to an external hard drive:

Quote:
robocopy C:\Users\USERNAME\Documents J:\Desktop-Backup\Documents /copyall /e /LOG+:c:\users\USERNAME\documents\backuplog.txt
The log file shows that it is backing up C:\users\USERNAME\documents\My Music and C:\users\USERNAME\documents\My Pictures.
That's fine, because I want those backed up anyway, but when I go to J:\desktop-backup\Documents, the Music and Pictures folders aren't there (or anywhere else on the J: drive).
I have "view hidden files and folders" turned on. It seems that the files are actually there because my Documents folder is only 700MB, yet several GB have been taken up on the J: drive.
Anyone have any thoughts?
Thanks.


My System SpecsSystem Spec
.

03 Mar 2012   #2
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Hi,

Can you re-write your post and use some punctuation and paragraphing to make it easier to read please? I'm having a hard time working out your robocopy command lines.

See if this will help you:

ROBOCOPY - Create Backup Script

Regards,
Golden
My System SpecsSystem Spec
03 Mar 2012   #3
choopy

windows 7 home premium 64 bit
 
 

Hi,

Thanks for the quick response. I added a few paragraph breaks, put the code in a quote tag, and removed an irrelevant part of the code.
The problem isn't with the code so much, as it is with the Win7 file system thinking that My Music, My Pictures and My Videos are located inside of the Documents folder, but then not displaying them at the backup destination.
Thanks
My System SpecsSystem Spec
.


03 Mar 2012   #4
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Hi,

Presumably you are replacing USERNAME with the actually users name in the command line?

Also, is My Music and My Pictures libraries? Do you have another location on C: that holds your music and photo's?

Regards,
Golden
My System SpecsSystem Spec
03 Mar 2012   #5
choopy

windows 7 home premium 64 bit
 
 

You presume correctly.
I guess they're libraries? When you click start and click Documents, Pictures or Music, that's the folders that I put them into.
My System SpecsSystem Spec
Reply

 Robocopy backup for personal folders




Thread Tools





Similar help and support threads
Thread Forum
ROBOCOPY - /MOV to two destination folders
Hi there, New to the forum, please go easy :) I've got a robocopy moving a file using /MOV from one folder to another. Is it possible to add a second destination so that the contents of the original folder will be moved to both destination folders? How would the syntax look? (below is...
General Discussion
Robocopy copying folders from the wrong place
I've set up a back up batch file to copy my Documents, Pictures, Music, and Videos folders from my computer to an external hard drive. However, while running the Documents backup, it seems to find, the pictures, music, and videos folders all inside the documents folders labelled "My Music", etc. ...
General Discussion
Robocopy - Copying Folders With Spaces in The Title.
Hey guys, This may sound like a really silly question, but I'm just getting to grips with using Robocopy. How do you copy folders with spaces in the title? E.g: T:\Admin Tools I keep getting an error. Any help would be great thanks.
Backup and Restore
robocopy skipping folders (moving c:\users)
Hey there, I'm attempting to use the guide posted on lifehacker to move the users folder to a different drive as W7 is installed on a rather small SSD. The guide is here: Move the Users Directory in Windows 7 I followed the directions to the letter, except of course, when it came to...
General Discussion
Anyone use robocopy to backup?
Evening all, Just curious to know if anyone uses the built in utility to backup software on your machine, im trying to backup my itunes folder to an external HD but having a few issues to get this to work properly! I also use sync toy for backing up but just really want to know what everyone...
Backup and Restore
Robocopy - adding attributes to specific folders
I've had some issues with mirroring my root directory to a backup folder on my netbook in that the backup folder becomes hidden and a system file after Robocopy has run (note the backup folder existed beforehand). To stop this happening i believe i can include the switch /A-:SH which would remove...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:46.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App