Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-24 Thread Deaf Cat

Interesting, 
Not come across that code before,
Good stuff Cheers for the test bits :)


-- 
Deaf Cat

Deaf Cat's Profile: http://forums.slimdevices.com/member.php?userid=515
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-24 Thread Flipze

When your ROBOCOPY log shows that there too many EXTRA files on the
backup disk you can use the /L switch to check what the /PURGE (or
/MIR) commands would remove before you do it.

I have two batch files one, RExtra, tells me what the extra files on
the backup are.  The second, RClean, removes them.  The commands are
identical except that RExtra contains the critical /L switch.  I've
attached them (with a .txt extension) so you can see for yourself.  Be
careful though!

There is a useful wikipedia article on robocopy:
http://en.wikipedia.org/wiki/Robocopy


+---+
|Filename: RExtra.bat.txt   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=3739|
+---+

-- 
Flipze

Flipze's Profile: http://forums.slimdevices.com/member.php?userid=11838
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-17 Thread Deaf Cat

ron thigpen;243172 Wrote: 
> fred7 wrote:
> > Just a helpful reminder to be very careful using the /mir option
> because
> > it will delete files not in the source. Doing this backwards can
> have
> > devastating results.
> 
> I'll reiterate this warning and make a suggestion.
> 
> My approach to mirroring music directories uses a batch file containing
> 
> robocopy commands.  I schedule this to run nightly.  I _do not_ use the
> 
> /mir switch for these automated runs.  Rather, these commands use 
> switches that enable straight one way copies.
> 
> Nothing is lost, but some cruft will build up on the destination disk.
> 
> When I want to clean up the cruft or need space on the destination disk
> 
> I first inspect the source contents to ensure that everything looks OK
> 
> then kick off a copy of the same batch file edited to use the /mir
> option.
> 
> HTH,
> 
> --rt


Cheers !

I copy, and mirror every now and then to :)


-- 
Deaf Cat

Deaf Cat's Profile: http://forums.slimdevices.com/member.php?userid=515
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-16 Thread ron thigpen
fred7 wrote:
> Just a helpful reminder to be very careful using the /mir option because
> it will delete files not in the source. Doing this backwards can have
> devastating results.

I'll reiterate this warning and make a suggestion.

My approach to mirroring music directories uses a batch file containing 
robocopy commands.  I schedule this to run nightly.  I _do not_ use the 
/mir switch for these automated runs.  Rather, these commands use 
switches that enable straight one way copies.

Nothing is lost, but some cruft will build up on the destination disk.

When I want to clean up the cruft or need space on the destination disk 
I first inspect the source contents to ensure that everything looks OK 
then kick off a copy of the same batch file edited to use the /mir option.

HTH,

--rt
___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread Paul_B

I would think it depends on what version of Robocopy and OS you are
using. If the OS (2003 / Vista) and Robocopy are Volume Shadow aware it
probably can copy files even if they are in use.


-- 
Paul_B

Paul

~
Slimcentre 7.0A1 on EPIA VIA EN15000 Mini-ITX running Windows 2003 R2
(SP2). 
Remote storage QNAP(2.1.1T)~(300GB WD)
SB3 (x1)
RIP - dBpowerAMP R12.3 to FLAC
ID3 Tags - MP3Tag v2.39
~

Paul_B's Profile: http://forums.slimdevices.com/member.php?userid=3039
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread JJZolx

Paul_B;243010 Wrote: 
> I would think it depends on what version of Robocopy and OS you are
> using. If the OS (2003 / Vista) and Robocopy are Volume Shadow aware it
> probably can copy files even if they are in use.

That was on XP Pro SP2, with Robocopy version XP010.


-- 
JJZolx

Jim

JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread Deaf Cat

Lovely, you guys have cleared up my unknowns and made things simple,

Ta very much :)


-- 
Deaf Cat

Deaf Cat's Profile: http://forums.slimdevices.com/member.php?userid=515
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread JJZolx

Robin Bowes;242999 Wrote: 
> You can't copy any executable files that are running.

I just tried it on a few running programs and it works for me.  Never
tried it before, so I couldn't say if it's always the case.


Code:

robocopy "C:\Program Files\Internet Explorer" "C:\temp\test" iexplore.exe
  robocopy "C:\Program Files\Macromedia\HomeSite+" "C:\temp\test" Homesite+.exe
  robocopy "%SystemRoot%\system32" "C:\temp\test" notepad.exe
  robocopy "C:\Program Files\Microsoft Office\Office" "C:\temp\test" excel.exe



-- 
JJZolx

Jim

JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread Robin Bowes
Deaf Cat wrote:
> Cheers for that, both of you!
> 
> Just double checking, so with Robocopy I can back up any *.exe files,
> like slimserver, mp3tag etc, and just reload if anything goes wrong
> (after of course XP is back on), Unless I get Ghost, yes?

You can't copy any executable files that are running.

R.

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread JJZolx

fred7;242968 Wrote: 
> Just a helpful reminder to be very careful using the /mir option because
> it will delete files not in the source. Doing this backwards can have
> devastating results.

True.  Don't reverse the source and destination if you like your data. 
It's always:

robocopy source destination [file(s)] [options]


-- 
JJZolx

Jim

JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread JJZolx

Deaf Cat;242974 Wrote: 
> Just double checking, so with Robocopy I can back up any *.exe files,
> like slimserver, mp3tag etc, and just reload if anything goes wrong
> (after of course XP is back on), Unless I get Ghost, yes?
> 
> What I'm thinking of backing up:
> 
> All music, pics, docs, etc
> emails
> contacts
> extra loaded on .exe files
> 
> Am I missing anything important?
> 
> So, there is no point in backing up the 'Program Files' or 'Windows'
> directories then as they are too involved with XP?

Robocopy is really nice and simple when it comes to "mirroring" a disk
used exclusively for data.  It gets a good bit more involved when you
start using it to backup particular files and folders.

You might want to look into using a ligitimate backup program when it
comes to backing up application data.  Then you'll be able to do things
like go back and restore a document that you accidentally deleted last
Monday.


-- 
JJZolx

Jim

JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread JJZolx

Deaf Cat;242961 Wrote: 
> So that one drive if it becomes faulty could be taken out and the new
> put in and all should run as if nothing has happened ?
> 
> I have been using robocopy probably in it's simplest form to back up
> music files to an external drive, and not sure on all the copy/mirror
> options that would allow all files to be copied, to allow a hard drive
> swap.

If it's just a data disk, then yes.  It wouldn't work for a bootable
system disk, since it just copies files and folders, rather than doing
do a low level duplication of the disk. For that, you'd want a utility
such as Ghost.

You'll need to do each partition on the drive if you have more than
one.

robocopy E:\ F:\ /mir

This will copy all folders and files, including empty ones and will
also remove any files and folders on F:\ that aren't on E:\ (equivalent
to /e /purge).


-- 
JJZolx

Jim

JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread Deaf Cat

Cheers for that, both of you!

Just double checking, so with Robocopy I can back up any *.exe files,
like slimserver, mp3tag etc, and just reload if anything goes wrong
(after of course XP is back on), Unless I get Ghost, yes?

What I'm thinking of backing up:

All music, pics, docs, etc
emails
contacts
extra loaded on .exe files

Am I missing anything important?

So, there is no point in backing up the 'Program Files' or 'Windows'
directories then as they are too involved with XP? 

Thanks again for any thoughts :)


-- 
Deaf Cat

Deaf Cat's Profile: http://forums.slimdevices.com/member.php?userid=515
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


Re: [slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread fred7

Just a helpful reminder to be very careful using the /mir option because
it will delete files not in the source. Doing this backwards can have
devastating results.

JJZolx;242966 Wrote: 
> If it's just a data disk, then yes.  It wouldn't work for a bootable
> system disk, since it just copies files and folders, rather than doing
> do a low level duplication of the disk. For that, you'd want a utility
> such as Ghost.
> 
> You'll need to do each partition on the drive if you have more than
> one.
> 
> robocopy E:\ F:\ /mir
> 
> This will copy all folders and files, including empty ones and will
> also remove any files and folders on F:\ that aren't on E:\ (equivalent
> to /e /purge).


-- 
fred7

fred7's Profile: http://forums.slimdevices.com/member.php?userid=6523
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss


[slim] Is it posible to use RoboCopy to mirror a whole hard drive ?

2007-11-15 Thread Deaf Cat

Hiya,

So that one drive if it becomes faulty could be taken out and the new
put in and all should run as if nothing has happened ?

I have been using robocopy probably in it's simplest form to back up
music files to an external drive, and not sure on all the copy/mirror
options that would allow all files to be copied, to allow a hard drive
swap.

Look forward to hearing any tips

Cheers
:)


-- 
Deaf Cat

Deaf Cat's Profile: http://forums.slimdevices.com/member.php?userid=515
View this thread: http://forums.slimdevices.com/showthread.php?t=40281

___
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss