yunohost/data/hooks/backup/08-conf_ssh

4 lines
81 B
Text

backup_dir="$1/conf/ssh"
mkdir -p $backup_dir
sudo cp -a /etc/ssh/. $backup_dir