Setting up SSH server on Ubuntu Server
This is the steps you need to do in order to get the SFTP up and running. In this case we will add userX to access the SFTP and when userX log on to the server the only folder that can be accessed is the one called root_folder.
$ sudo groupadd sftponly
$ sudo useradd userX -m -s /bin/false
$ sudo passwd userX
$ sudo usermod -g sftponly userX
$ sudo chown root:root /home/userX
$ sudo mkdir /home/userX/upload
$ sudo chown root:sftponly /home/userX/upload
$ sudo chmod 770 /home/userX/upload
$ sudo mkdir /home/userX/root_folder
$ sudo chown root:sftponly /home/userX/root_folder
$ sudo chmod 750 /home/userX/root_folder
$ sudo mkdir /home/userX/.ssh
$ sudo chown root:sftponly /home/userX/.ssh
$ sudo chmod 710 /home/userX/.ssh
$ sudo nano /etc/fstab
/folder/to/be/mounted /home/userX/root_folder none bind 0 0
$ sudo mount -a
$ sudo nano /home/userX/.ssh/authorized_keys
$ sudo chown root:sftponly /home/userX/.ssh/authorized_keys
$ sudo chmod 640 /home/userX/.ssh/authorized_keys
$ sudo nano /etc/ssh/sshd_config
subsystem sftp internal-sftp
AllowUsers userX userY userZ
Match group sftponly
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
$ sudo service ssh restart
Manage backups on your MS SQL Server
Managing backups on your SQL Server is really important and there are several ways of doing this. I found a job created by Ola Hallengren that does this in an excelent way. The script creates FULL, DIFF and LOG backup and you can customize the script in many ways. This is also what I've been using professionally when setting up and administrating backup jobs on MS SQL.
The script is free of use and the author keeps it up to date. However, if the script has moved since this was written, here is a local file for you to download: MaintenanceSolution.sql