yunohost/hooks/backup/8-system_ssh

6 lines
90 B
Bash

#!/bin/bash
backup_dir="$1/ssh"
mkdir -p $backup_dir
sudo cp -a /etc/ssh/* $backup_dir/