Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

XCOPY for backups


  • This topic is locked This topic is locked
64 replies to this topic

#31 SleepyDude

SleepyDude

  •  Avatar image
  • Malware Response Team
  • 4,172 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:05:54 AM

Posted 24 February 2014 - 09:16 AM

 

 

Now if only this would work with system (ntuser) files also .....!

 
No that will not work if the user if logged on the system because the file is locked, you need to use a program like Cobian Backup I post above or HoboCopy a command line tool.

 

These should be great if I can get them to work.  I installed Cobian ("as an application" not as a "service") but can't get it to run, it seems that it thinks that another version is in progress.  With the Hobo download it appeared that other additional components had to be downloaded from somewhere but I found a Hobo GUI and on the surface it looks like it might work.  Nothing in life is simple

 

 
It's better to install Cobian as service to schedule backups also running as service it will bypass some permissions restrictions.

Why do you say that Hobo needs additional components?
 

With the (archive) attribute command do I run it just once only at the beginning - not prior to using xcopy / M each time?

 

Every time before xcopy /m
 

Re Crazy Cats' post - thanks, it looks very impressive indeed but I'm trying to figure out just what it does and does not do! [system files?]

It will fail also but the copy continues because of /C


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


BC AdBot (Login to Remove)

 


#32 Magic Sam

Magic Sam
  • Topic Starter

  •  Avatar image
  • Members
  • 463 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brigadoon (Co Durham, UK)
  • Local time:04:54 AM

Posted 24 February 2014 - 10:37 AM

Tks for clarifying the archive attribute question.

 

I tried to install Cobian as a service but it didn't like it and the installation failed.  It installed OK as an application (whatever the difference is) but whenever I try to open it within XP Programs it thinks that another instance is running, and baulks.

 

With Hobo I need Windows "Volume Shadow copy" and "MS Shadow Copy Provider" enabled.  Who knows how to do this!

 

As is, clicking on hobocopy.exe brings up the command screen for 2 nano seconds only.  Typing hobocopy /? into DOS brings up "... is not recognized .."

 

It's tough going ...


But there are also unknown unknowns- the ones we don't know we don't know


#33 SleepyDude

SleepyDude

  •  Avatar image
  • Malware Response Team
  • 4,172 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:05:54 AM

Posted 24 February 2014 - 11:25 AM

Tks for clarifying the archive attribute question.
 
I tried to install Cobian as a service but it didn't like it and the installation failed.  It installed OK as an application (whatever the difference is) but whenever I try to open it within XP Programs it thinks that another instance is running, and baulks.
 
With Hobo I need Windows "Volume Shadow copy" and "MS Shadow Copy Provider" enabled.  Who knows how to do this!


Those are services included on windows that make possible to copy files locked.
 

As is, clicking on hobocopy.exe brings up the command screen for 2 nano seconds only.  Typing hobocopy /? into DOS brings up "... is not recognized .."


Copy the hobocopy.exe to the c:\windows folder. Hobo it's a command line tool you need to open the Command Prompt and type hobocopy /? to see the help.

 

There is a simple tutorial for Hobocopy here.


Edited by SleepyDude, 24 February 2014 - 11:27 AM.

• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#34 Magic Sam

Magic Sam
  • Topic Starter

  •  Avatar image
  • Members
  • 463 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brigadoon (Co Durham, UK)
  • Local time:04:54 AM

Posted 24 February 2014 - 12:05 PM

Ah thanks - they didn't explain this on the tin.

 

As an afterthought, thinking back on my previous efforts, might xcopying in XP safe mode work for system / ntuser files?


But there are also unknown unknowns- the ones we don't know we don't know


#35 Magic Sam

Magic Sam
  • Topic Starter

  •  Avatar image
  • Members
  • 463 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brigadoon (Co Durham, UK)
  • Local time:04:54 AM

Posted 24 February 2014 - 12:14 PM

hobocopy.exe is now in my e:\windows folder (I run from the e: drive).  No apparent change to previous :(


But there are also unknown unknowns- the ones we don't know we don't know


#36 Magic Sam

Magic Sam
  • Topic Starter

  •  Avatar image
  • Members
  • 463 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brigadoon (Co Durham, UK)
  • Local time:04:54 AM

Posted 24 February 2014 - 12:24 PM

Cancel last :( post.  Putting it into C:\windows seems to have worked


But there are also unknown unknowns- the ones we don't know we don't know


#37 Crazy Cat

Crazy Cat

  •  Avatar image
  • Members
  • 808 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Lunatic Asylum
  • Local time:04:54 PM

Posted 24 February 2014 - 07:47 PM

Crazy Cats' post - thanks, it looks very impressive indeed but I'm trying to figure out just what it does and does not do! [system files?]

It's a backup batch script using xcopy.exe I've used for my years.

Just edit these parameters within the batch script. Will copy the 'source' folder to the 'destination' folder and write an appending log file 'logxcopy.txt' with date & time.

Set "sourceDir=C:\source"
Set "destinationFolder=D:\destination"
Set "_report=D:\destination\logxcopy.txt"
 

Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. ― Albert Einstein ― Insanity is doing the same thing, over and over again, but expecting different results.

 

InternetDefenseLeague-footer-badge.png


#38 SleepyDude

SleepyDude

  •  Avatar image
  • Malware Response Team
  • 4,172 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:05:54 AM

Posted 25 February 2014 - 04:21 AM

Ah thanks - they didn't explain this on the tin.

 

As an afterthought, thinking back on my previous efforts, might xcopying in XP safe mode work for system / ntuser files?

 

I don't think so. The ntuser.dat contains the user registry part its loaded and locked by the system if you login with the same user.

To have free access to those system files you need to login with a different user that need to be a member of the Administrators group. Restoring from a backup done that way can be tricky because you must make sure that the file permissions are correct or windows will refuse to load the user profile.

It's far more safer to use hobocopy to do the backup without messing with file permissions.


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#39 Magic Sam

Magic Sam
  • Topic Starter

  •  Avatar image
  • Members
  • 463 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brigadoon (Co Durham, UK)
  • Local time:04:54 AM

Posted 25 February 2014 - 09:02 AM

May I revert re the attribute and xcopy /m?

 

For differential backups I want the system to select and copy only the files that have changed since the last backup.  It has therefore to distinguish between the two categories.  But if I reset the attribute with attrib /S +a each time, then it can't do this?  Am I missing a trick?

 

===

 

What is the difference between what Hobocopy and Robocopy can do when they are behaving themselves? They seem very similar.

 

I have uninstalled Cobian and will try a reinstall just to have this as a backup backup.

 

I may have gone into Safe Mode and then as an administrator (guided by someone on the phone) but I agree that it would be much better to do it via Hobo (and/or Robo)copy.


But there are also unknown unknowns- the ones we don't know we don't know


#40 Magic Sam

Magic Sam
  • Topic Starter

  •  Avatar image
  • Members
  • 463 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brigadoon (Co Durham, UK)
  • Local time:04:54 AM

Posted 25 February 2014 - 11:25 AM

Sorry Misread the original post for the OS. Robocopy does work in XP - goto download.microsoft.com and download the Windows server 2003 resource kit - I believe that is the official source for the XP generation's version.

I have downloaded the 2003 Resource Kit into my program files folder.  The contents appear to be just a number of "Guides", all *.docs but no exe file.  Getting Robocopy to work remains a well kept secret just as before :(


But there are also unknown unknowns- the ones we don't know we don't know


#41 x64

x64

  •  Avatar image
  • Members
  • 352 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:London UK
  • Local time:05:54 AM

Posted 25 February 2014 - 01:47 PM

 

Sorry Misread the original post for the OS. Robocopy does work in XP - goto download.microsoft.com and download the Windows server 2003 resource kit - I believe that is the official source for the XP generation's version.

I have downloaded the 2003 Resource Kit into my program files folder.  The contents appear to be just a number of "Guides", all *.docs but no exe file.  Getting Robocopy to work remains a well kept secret just as before :(

 This one ? http://www.microsoft.com/en-us/download/details.aspx?id=17657

 

Re other comments about wanting to copy ntuser.dat around - I'd expect this to cause problems - I can't quantify them, but a local profile is just that - local. Corporate networks can usese roaming priofiles, whose synchronisation is managed automatically, but I've not seen local profile being copied around so freely. The system will likely keep ntuser.dat locked anyway.



#42 SleepyDude

SleepyDude

  •  Avatar image
  • Malware Response Team
  • 4,172 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:05:54 AM

Posted 25 February 2014 - 02:01 PM

May I revert re the attribute and xcopy /m?
 
For differential backups I want the system to select and copy only the files that have changed since the last backup.  It has therefore to distinguish between the two categories.  But if I reset the attribute with attrib /S +a each time, then it can't do this?  Am I missing a trick?


Playing with the Archive attribute and /M is only useful to continue aborted copies.
To copy only new or changed files use /D
 
What is the difference between what Hobocopy and Robocopy can do when they are behaving themselves? They seem very similar.
Hobocopy can copy locked files, Robocopy doesn't. Robocopy offer a lot of options in terms of copies but can't copy locked files.

• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#43 Magic Sam

Magic Sam
  • Topic Starter

  •  Avatar image
  • Members
  • 463 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brigadoon (Co Durham, UK)
  • Local time:04:54 AM

Posted 25 February 2014 - 03:22 PM

 

 

 This one ? http://www.microsoft.com/en-us/download/details.aspx?id=17657

 

Re other comments about wanting to copy ntuser.dat around - I'd expect this to cause problems - I can't quantify them, but a local profile is just that - local. Corporate networks can usese roaming priofiles, whose synchronisation is managed automatically, but I've not seen local profile being copied around so freely. The system will likely keep ntuser.dat locked anyway.

 

 

That was my previous source.  It seemed to imply that there was a "tool" to download but all I seem to have got is "guides"!  I'm missing something.

 

Hopes are now pinned on Hobocopy which if it does what it says on the tin (the tutorial) should satisfy my requirements, when I get a chance to put it to the test.


But there are also unknown unknowns- the ones we don't know we don't know


#44 x64

x64

  •  Avatar image
  • Members
  • 352 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:London UK
  • Local time:05:54 AM

Posted 25 February 2014 - 04:48 PM

 

 

 

 This one ? http://www.microsoft.com/en-us/download/details.aspx?id=17657

 

Re other comments about wanting to copy ntuser.dat around - I'd expect this to cause problems - I can't quantify them, but a local profile is just that - local. Corporate networks can usese roaming priofiles, whose synchronisation is managed automatically, but I've not seen local profile being copied around so freely. The system will likely keep ntuser.dat locked anyway.

 

 

That was my previous source.  It seemed to imply that there was a "tool" to download but all I seem to have got is "guides"!  I'm missing something.

 

Hopes are now pinned on Hobocopy which if it does what it says on the tin (the tutorial) should satisfy my requirements, when I get a chance to put it to the test.

 

From that page you download rktools,exe. This is an installer which installs a a collection of tools for system management - the list of tools included is in the "details" rollup on the download page.

 

Thhe Windows 2003 resource kit does indeed incude a lot of documentation about that family of products, but also a part of the resource kit are the tools. In this case, you are only interested in the tools, which is the package available from the page that I linked to (really, it is - I just downloaded it again to check!). It's possible that you found a link that only included the doocumentation aspect of the resource kit.

 

x64


Edited by x64, 25 February 2014 - 04:49 PM.


#45 Magic Sam

Magic Sam
  • Topic Starter

  •  Avatar image
  • Members
  • 463 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Brigadoon (Co Durham, UK)
  • Local time:04:54 AM

Posted 07 March 2014 - 01:51 PM

I think that I have finally got Hobocopy to work and am getting quite enthusiastic about it.  Not quite so with the other computer however which is threatened with hard drive failure and from which I just took a "simple" copy of the Docs and Settings and Program files folders, and copied them on to a replacement (dual boot XP / W7) PC.  

 

From what I can tell most of the settings appear to have transferred but not, for some reason, my Chrome browser favo(u)rites / bookmarks.  Are they lost and hidden somewhere inaccessible outwith the Docs & Settings folder???

 

It seems that with MS Office (in my case 2003) you can't just "transfer" the files either but need the original installation disc which I haven't got.

 

I was under the illusion that if all else failed you could restore everything by reverting to what I had previously Macrium ghost-imaged.  Not so apparently unless the replacement hardware is a clone of the original.   If one wants to provide for having to replace one PC with another, is the correct course to backup / hobocopy the Docs & Settings and the program exe files folders?


But there are also unknown unknowns- the ones we don't know we don't know





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users