wiki:backuppc_mssql
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:backuppc_mssql [2015/06/03 21:10] – jrdalrymple | wiki:backuppc_mssql [2018/09/27 02:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| ==== The folder and scripts ==== | ==== The folder and scripts ==== | ||
| + | - Create a folder somewhere on the server, I use a folder called " | ||
| + | - Change the permissions to be very restrictive on that folder, only the unprivileged windows user **and the user that is running the SQL service** (find in services.msc) need access. | ||
| + | - We need 2 files in that folder\\ <file DOS backup_dbs.cmd> | ||
| + | erase " | ||
| + | sqlcmd -E -i " | ||
| + | BACKUP DATABASE [DATABASE_1] TO DISK = N' | ||
| + | BACKUP DATABASE [DATABASE_2] TO DISK = N' | ||
| + | GO</ | ||
| + | ==== The parts on the BackupPC server ==== | ||
| + | |||
| + | - The user on your BackupPC server that is running the daemon needs to be able to login to the Windows host without a password, you can ID this user with `ps -ef | grep " | ||
| + | - If you haven' | ||
| + | - su backuppc | ||
| + | - ssh-keygen | ||
| + | - cat .ssh/ | ||
| + | - exit | ||
| + | - copy the contents of the backuppc user's id_rsa.pub file into the file " | ||
| + | - su backuppc | ||
| + | - ssh windowsuser@windowshost (yes, then password for that user) | ||
| + | - mkdir .ssh | ||
| + | - vi .ssh/ | ||
| + | - chmod 600 .ssh/ | ||
| + | - chmod 700 .ssh | ||
| + | - exit | ||
| + | - At this point you should be able to ssh into the windows host as backuppc user without entering a password | ||
| + | - Create a host just like any other Windows host on your BackupPC server, you may as well configure this server to only do Full backups since really every backup will be full anyway using this method | ||
| + | - Configure your DumpPreUserCmd to be the following: " | ||
| + | |||
| + | ==== Conclusion ==== | ||
| + | |||
| + | That should be it, you should get backups. Just that easy - if it doesn' | ||
wiki/backuppc_mssql.1433365836.txt.gz · Last modified: 2018/09/27 02:30 (external edit)