Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 503
  • Last Modified:

retrieving files after robocopy backup

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
msikorsk
Asked:
msikorsk
  • 8
  • 6
1 Solution
 
Bill PrewCommented:
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
 
wmeerzaCommented:
can you post your robocopy command linesx for backup and restore
0
 
msikorskAuthor Commented:
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
[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

 
wmeerzaCommented:
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
 
wmeerzaCommented:
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
 
msikorskAuthor Commented:
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
 
wmeerzaCommented:
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
 
wmeerzaCommented:
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
 
msikorskAuthor Commented:
Great,  I'll try it in morning.  The system is Vista in case that matters.  Thanks.
0
 
msikorskAuthor Commented:
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
 
msikorskAuthor Commented:
Or would I get empty folders again?
0
 
wmeerzaCommented:
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
 
wmeerzaCommented:
failing the above you may want to look at clonezilla.
let me know if you need more info.
0
 
msikorskAuthor Commented:
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
 
wmeerzaCommented:
How did you go with this, do you still have issues?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now