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:17] – jrdalrymple | wiki:backuppc_mssql [2018/09/27 02:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 25: | Line 25: | ||
| - Create a folder somewhere on the server, I use a folder called " | - 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 performing | + | - Change the permissions to be very restrictive on that folder, only the unprivileged windows user **and the user that is running |
| - We need 2 files in that folder\\ <file DOS backup_dbs.cmd> | - We need 2 files in that folder\\ <file DOS backup_dbs.cmd> | ||
| erase " | erase " | ||
| - | sqlcmd -E -i " | + | sqlcmd -E -i " |
| BACKUP DATABASE [DATABASE_1] TO DISK = N' | BACKUP DATABASE [DATABASE_1] TO DISK = N' | ||
| BACKUP DATABASE [DATABASE_2] TO DISK = N' | BACKUP DATABASE [DATABASE_2] TO DISK = N' | ||
| GO</ | GO</ | ||
| - | | + | |
| + | ==== The parts on the BackupPC server ==== | ||
| + | |||
| + | | ||
| + | - 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.1433366263.txt.gz · Last modified: 2018/09/27 02:30 (external edit)