I am new to powershell. I got requirement to take the backup of MS sql database backup from the other machine and not within the server.
Can you please let me know what possible utilities required to connect and take the full backup.
powershellsql server
I am new to powershell. I got requirement to take the backup of MS sql database backup from the other machine and not within the server.
Can you please let me know what possible utilities required to connect and take the full backup.
Best Answer
Make sure you have the
sqlps
module installed on the machine from which you could be taking the backup. After that you can use theBackup-SqlDatabase
cmdlet to backup a certain database.Example:
This would take a full backup. More info on the cmdlet here.