backup_dir="$1/conf/ssh" if [ -d /etc/ssh/ ]; then sudo cp -a $backup_dir/. /etc/ssh sudo service ssh restart else echo "SSH is not installed" fi