?
Solved

retrieving files after robocopy backup

Posted on 2010-01-12
16
Medium Priority
?
496 Views
Last Modified: 2012-05-08
Hi, I thought I had backed up files correctly using robocopy (it took 3 hours) and an external hardrive.   But when I  retrieve folders with the reverse robocopy command, they are empty of files.  On the backup hard drive, although all the directories are listed, only a folder called "backup" has contents (6.4 GB data).  How do I retrieve the data?
0
Comment
Question by:msikorsk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
16 Comments
 
LVL 56

Expert Comment

by:Bill Prew
ID: 26299497
What files are in the backup folder?  Are they the files you wanted to back up, just all flattened into a single folder, or something else?

~bp
0
 
LVL 10

Expert Comment

by:wmeerza
ID: 26299757
can you post your robocopy command linesx for backup and restore
0
 

Author Comment

by:msikorsk
ID: 26300557
It looks like all the folders from the original drive (C) are on the backup drive (F), but they are empty of files.  The folder labelled backup has the following files:  bootmgr, BOOTSECT.BAK, Installer_Setup.log, msdia80.dll, pagefile.sys, vcredit_x86.log

I think I tried two different commands to backup:
robocopy c: f:\Backup\c\
ROBOCOPY  c:\ f:\ /e /b /efsraw /copyall /dcopy: t /r: 0
I regret not having written down.  

To retrieve I tried:
(1) robocopy F:\backup\ c:\temp\
(2) robocopy f:\users\don\desktop\fgf\ c:\users\ama\desktop\fgf\
both appeared to work retrieving; (1) the above mentioned files from backup into a folder named temp or (2) the directory fgf but no files

Clearly I dont know what I'm doing.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 10

Expert Comment

by:wmeerza
ID: 26300688
is the problem now that you have removed files and need to restore or are you happy to do the backup again (with the correct switches!)
0
 
LVL 10

Expert Comment

by:wmeerza
ID: 26300698
also, are you trying to create a full backup of your c:, would you prefer to create an image or is there specific folders on your c that you want to backup?
0
 

Author Comment

by:msikorsk
ID: 26300710
I would be happy to try backup again.  The hard drive is damaged.  We can not boot to windows but can get to the command prompt window.  As soon as I backup the files I will be replacing the drive.
0
 
LVL 10

Expert Comment

by:wmeerza
ID: 26300848
ok this sounds achievable. I take it you will be doing a fresh install of XP to the new drive then want to restore the data as required. Also, i assume it's XP or is it a server?

either way to copy the C: drive using robocopy the following command will make a full copy to a folder on the Fdrive: (including directory structure)

Robocopy c:\ f:\Backup_Folder *.* /E /COPYALL /MIR

This will copy all folders (including empty ones) and all file attribute to the destination drive.
0
 
LVL 10

Expert Comment

by:wmeerza
ID: 26300856
important note to remember, with /MIR if you run it then delete files from the source then run it again, it will remove the files from the destination (i.e. mirror).
0
 

Author Comment

by:msikorsk
ID: 26300884
Great,  I'll try it in morning.  The system is Vista in case that matters.  Thanks.
0
 

Author Comment

by:msikorsk
ID: 26306328
So after trying a few variations, this works, but it is taking a long time because of error 5(access denied):
Robocopy c:\ f:\Backup_Folder\ /E /COPYALL /MIR /R:1
I had to remove the  *.*, but it appears to be default
I had to add R:1 so that it wouldn't keep trying a million times if it failed to copy a file
If I included /EFSRAW, would that take care of error 5?
0
 

Author Comment

by:msikorsk
ID: 26306338
Or would I get empty folders again?
0
 
LVL 10

Expert Comment

by:wmeerza
ID: 26309452
Your command should work fine, I have tested it (with only 30gb on my C:) and it runs through with no problem. I put a /W:3 on the end to reduce the wait time on retries.

I'm not sure of the error 5, sounds like a security issue. Are you running as admin? It could be that it is strugling with the NTFS permissions.

Can you identify what files or folders you get error 5 on? you could try excluding them.
0
 
LVL 10

Expert Comment

by:wmeerza
ID: 26309847
failing the above you may want to look at clonezilla.
let me know if you need more info.
0
 

Accepted Solution

by:
msikorsk earned 0 total points
ID: 26430825
I  finally had to settle on getting only the desktop copied with this command:
robocopy c:\desktop\John f:\Backup_Folder\ /E /efsraw /COPYALL /xjd /MIR /R:0
the /xjd is to address an infinite loop that  kept coming up
If I tried to backup the whole drive with:
robocopy c:\ f:\Backup_Folder\ /E /efsraw /COPYALL /xjd /MIR /R:0
It never worked.






0
 
LVL 10

Expert Comment

by:wmeerza
ID: 28943785
How did you go with this, do you still have issues?
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question