Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Newbie question - Is there a script/command to do a backup of a di

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 12-18-2007   #1 (permalink)
dob
Guest


 

Newbie question - Is there a script/command to do a backup of a di

Newbie question - Is there a script/command to do an automatic backup of a
disk to another disk? Or a set of folders on a disk to another disk?

Sorry, but I've looked around and there doesn't seem to be a quick
explanation/script avaiable for what would seem to be an easy, but important
task.
--
dob

My System SpecsSystem Spec
Old 12-18-2007   #2 (permalink)
Leo Tohill
Guest


 

RE: Newbie question - Is there a script/command to do a backup of a di

If by "backup" you mean a simple copy, sure.

Something like

copy-item c:\mystuff d:\mystuff -recurse

should do.

If you want "automatic" you'll need a scheduler. I understand that
Powershell 2.0 will have scheduling features, but until then you could use
the task scheduler (the "AT" command.). example:

AT 0:00 "powershell c:\mybackup.ps1"

where the ps1 file contains the copy-item command.

If that's not what you are looking for, please explain and I'll try again.

- Leo


"dob" wrote:
Quote:

> Newbie question - Is there a script/command to do an automatic backup of a
> disk to another disk? Or a set of folders on a disk to another disk?
>
> Sorry, but I've looked around and there doesn't seem to be a quick
> explanation/script avaiable for what would seem to be an easy, but important
> task.
> --
> dob
My System SpecsSystem Spec
Old 12-18-2007   #3 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Newbie question - Is there a script/command to do a backup ofa di

Quote:

> If you want "automatic" you'll need a scheduler. I understand that
> Powershell 2.0 will have scheduling features, but until then you could use
> the task scheduler (the "AT" command.). example:
Not sure about 2.0 having any time scheduling capabilities. It wouldn't
necessarily make sense either.

Perhaps you are referring to "eventing"?

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 12-18-2007   #4 (permalink)
Jon
Guest


 

Re: Newbie question - Is there a script/command to do a backup of a di


"dob" <dob@xxxxxx> wrote in message
news:31228D5B-8272-44CA-AE02-41063294B176@xxxxxx
Quote:

> Newbie question - Is there a script/command to do an automatic backup of a
> disk to another disk? Or a set of folders on a disk to another disk?
>
> Sorry, but I've looked around and there doesn't seem to be a quick
> explanation/script avaiable for what would seem to be an easy, but
> important
> task.
> --
> dob

You can also use older commands that you may have used with cmd.exe, such as
xcopy etc.

xcopy /?

"If it works, don't ...... "

--
Jon


My System SpecsSystem Spec
Old 01-03-2008   #5 (permalink)
dob
Guest


 

RE: Newbie question - Is there a script/command to do a backup of

Thanks, that seems to be what I needed! - simple copy is what I wanted
--
dob


"Leo Tohill" wrote:
Quote:

> If by "backup" you mean a simple copy, sure.
>
> Something like
>
> copy-item c:\mystuff d:\mystuff -recurse
>
> should do.
>
> If you want "automatic" you'll need a scheduler. I understand that
> Powershell 2.0 will have scheduling features, but until then you could use
> the task scheduler (the "AT" command.). example:
>
> AT 0:00 "powershell c:\mybackup.ps1"
>
> where the ps1 file contains the copy-item command.
>
> If that's not what you are looking for, please explain and I'll try again.
>
> - Leo
>
>
> "dob" wrote:
>
Quote:

> > Newbie question - Is there a script/command to do an automatic backup of a
> > disk to another disk? Or a set of folders on a disk to another disk?
> >
> > Sorry, but I've looked around and there doesn't seem to be a quick
> > explanation/script avaiable for what would seem to be an easy, but important
> > task.
> > --
> > dob
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script DOS Command? Andrew Staley VB Script 4 05-24-2008 02:54 AM
Newbie Question: Here-Script with PowerShell Raymund Hemmerling PowerShell 6 09-28-2007 03:34 AM
newbie-backup data joblow Vista file management 1 09-28-2007 12:35 AM
Newbie Needs Help With Folder script! Mícheál PowerShell 4 04-16-2007 05:05 AM
Newbie: running external script bill PowerShell 3 12-22-2006 03:09 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008