R
R
Roman_ Outside2015-05-30 23:23:30
Oracle
Roman_ Outside, 2015-05-30 23:23:30

How to create a file backup script (Cold Copy) using PowerShell?

Good evening, the task is to copy certain files daily to the file server at night, since you have to slow down the services that work with them. OS - Windows 2012 r2. Is there any standard algorithm to implement this using PowerShell or otherwise? You need to implement the following:

0) Stop OracleService
1) At 2200 copy everything from D:\Oradata to \\192.168.0.24\backup\%current date%\
2) Start OracleService
2) Repeat every day
3) Erase copies, which are stored for more than 10 days

Thank you in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2015-05-30
@new_Roman

On PowerShell, the script is the simplest, is it difficult for you to google the phrases "stop powershell services" "copy powershell over the network" "powershell current date"?

A
Andrey Ermachenok, 2015-05-30
@eapeap

For example, APBackUp - execute command before archiving - archive - execute command after archiving - keep no more than 10 archives. Archives named Oracle_Data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question