yunohost/data/hooks/backup/23-system_mail

5 lines
70 B
Bash

#!/bin/bash
backup_dir="$1/mail"
sudo cp -a /var/mail/. $backup_dir