Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

implementing backup system using PS (a newbie question)

$
0
0
We have a backup system based on TSQL commands:1. A job in the central SQL Server initiate the process once a day.2. The backup details (which database, in which server, to which directory) are saved in a management table in the SQL Server.3. The TSQL Backup commands are executed in remote servers through Linked Servers.4. Another process deletes files older than 2 weeks from all the directories which appear in the management table (using xp_cmdshell and Del commands).How would you implement such a system using PS?I'm not just talking about replacing the TSQL commands with PS commands, but also about the general approach: Where the management data will be stored? How the execution will be initiated?

Viewing all articles
Browse latest Browse all 467

Trending Articles