F
F
FunKy_ch33se2015-05-05 08:17:52
cmd/bat
FunKy_ch33se, 2015-05-05 08:17:52

Backup using CMD Windows Server 2008R2?

There is a server with Windows Server 2008R2 + MySQL+IIS, on which you need to copy several subfolders from the C:\inetpub\ folder, but you need to stop MySQL before doing it. The backup should be done on an FTP server, subfolders from C:\inetpub\ should be archived. After copying, you need to enable MySQL.
How can this be done using PowerShell or CMD, so that it runs on schedule and checks that the MySQL service is running

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
oia, 2015-05-05
@oia

net stop service name net
start service name into the Task
Scheduler arvive.zip>>ftp ftp -s:ftp add ftp(ftp.ru) del ftp exit

A
Andrey Ermachenok, 2015-05-05
@eapeap

Backup programs can execute commands before and after the backup. In your case - stop and then start SQL. I use APBackUp - it can.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question