smeserver-sogo/root/etc/e-smith/events/actions/sogo-backup

5 lines
195 B
Plaintext
Raw Normal View History

mkdir /home/e-smith/sogo &> /dev/null
/usr/sbin/sogo-tool backup /tmp/backup ALL &> /dev/null
tar cvzf /home/e-smith/sogo/backup.tgz -C /tmp/ backup &> /dev/null
rm -rf /tmp/backup &> /dev/null