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