Notices
Non Scooby Related Anything Non-Scooby related

Simple backup Commands

Thread Tools
 
Search this Thread
 
Old 12 August 2001, 05:46 PM
  #1  
AndiThompson
Scooby Regular
Thread Starter
 
AndiThompson's Avatar
 
Join Date: Aug 2001
Location: Republic Of Mancunia
Posts: 2,474
Likes: 0
Received 0 Likes on 0 Posts
Post

PC2???

Blooming heck Andy, think up some decent names mate , my PCs are:

Catlunya (lappy), Terzo (my PC), STi (dad's office), WRX (dad's workshop)!!

[Edited by AndiThompson - 12/8/2001 5:47:31 PM]
Old 12 August 2001, 06:39 PM
  #2  
Avi
Scooby Regular
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
Post

Christian - Not too hot on that sort of stuff, know anywhere I can find out?? infact, i've never heard of it

Andi - They aren't actually called that, just thought i'd make it simple.

They are called Cartman & Kenny

Andy

[Edited by Avi - 12/8/2001 6:41:09 PM]
Old 08 December 2001, 04:27 PM
  #3  
Avi
Scooby Regular
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
Post

I have two PC's

PC1 & PC2.

I have a folder on PC1 called c:\data that everything is stored on.

I have a folder on PC2 called c:\backup. (shared as backup)

I want to be able to have a simple program (batch file) that i can launch on PC1 which will

1) ask me if PC2 is turned on?

if yes

2) Copy all the contents of c:\data to \\pc2\backup.


Can anyone give me any pointers or tell me where i could look to work out how to do this?


Andy
Old 08 December 2001, 04:38 PM
  #4  
ChristianR
Scooby Regular
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

use the choice command.
Old 08 December 2001, 06:48 PM
  #5  
AndiThompson
Scooby Regular
Thread Starter
 
AndiThompson's Avatar
 
Join Date: Aug 2001
Location: Republic Of Mancunia
Posts: 2,474
Likes: 0
Received 0 Likes on 0 Posts
Post

Pfht, how old are you?!!?
Old 08 December 2001, 11:24 PM
  #6  
Avi
Scooby Regular
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
Post

I have managed to get some files accross by using :

xcopy \\PC1\data\ \\PC2\databackup\

How can I make this command also copy all the Sub Folders??

Andy
Old 08 December 2001, 11:29 PM
  #7  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Post

'help xcopy'
results in....
/E Copies directories and subdirectories, including empty ones.

SteveM

man pages (or equivalents) are your friends.......
Old 09 December 2001, 12:12 AM
  #8  
Silent Monkey
Scooby Regular
 
Silent Monkey's Avatar
 
Join Date: May 2001
Posts: 432
Likes: 0
Received 0 Likes on 0 Posts
Post

Basic batch file - expand as necessary

@echo off
cls
choice /T:N,5 Is PC2 on?
if errorlevel 2 goto end
xcopy \\pc1\data\ \\pc2\databackup /e
:end

This will wait 5 seconds for you to answer the question then default to NO and not do the copy.
Old 09 December 2001, 02:26 PM
  #9  
Avi
Scooby Regular
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
Post

Cheers
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Frizzle-Dee
Essex Subaru Owners Club
13
09 March 2019 07:35 PM
Subaruswan
ScoobyNet General
14
01 October 2015 08:05 PM
the shreksta
Other Marques
26
01 October 2015 02:30 PM
Phil3822
General Technical
0
30 September 2015 06:29 PM
Subaruswan
Interior
0
28 September 2015 09:53 PM



Quick Reply: Simple backup Commands



All times are GMT +1. The time now is 12:33 PM.