yunohost/data/hooks/backup/08-system_ssh

4 lines
76 B
Text

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