source: tools/vmail-snapshot.sh

Last change on this file was 344, checked in by Rick van der Zwet, 13 years ago

Avoid potential directory disaster.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 224 bytes
RevLine 
[215]1#!/bin/sh
2#
[216]3# $Id: vmail-snapshot.sh 344 2011-09-08 17:52:28Z rick $
[215]4# Poor mans virtual mailbox backup.
5# Rick van der Zwet <info@rickvanderzwet.nl>
6
7
[343]8TARGET=/usr/backup/`host -s`/vmailbackup/virtual.tar.gz
[344]9mkdir -p $TARGET || exit 1
[215]10tar -C /var/mail -czf $TARGET virtual
11
Note: See TracBrowser for help on using the repository browser.