バックアップ
tar -zcvpf /backup/asterisk-backup-$(date +%d-%m-%Y).tar.gz /etc/asterisk /var/lib/asterisk /var/spool/asterisk /var/run/asterisk /var/log/asterisk /usr/sbin
復元
rm -rf /etc/asterisk/* /var/lib/asterisk/* /var/spool/asterisk* /var/run/asterisk/* /var/log/asterisk/*
tar -xvpzf asterisk-backup-12-04-2020.tar.gz -C /
コメント