diff options
author | jim-p <jimp@pfsense.org> | 2010-08-06 12:03:03 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-08-06 12:03:03 -0400 |
commit | ef68d19ce1ec4c6f23c6e350340ccb7e6a2448d7 (patch) | |
tree | bbd5fc2d8168b0e5f40605532a98366982ea4171 /etc/rc.backup_rrd.sh | |
parent | 21934843352aa1dee730f59b06d35f1619c0ab3e (diff) | |
download | pfsense-ef68d19ce1ec4c6f23c6e350340ccb7e6a2448d7.zip pfsense-ef68d19ce1ec4c6f23c6e350340ccb7e6a2448d7.tar.gz |
Move the RRD backup code to a script.
Diffstat (limited to 'etc/rc.backup_rrd.sh')
-rw-r--r-- | etc/rc.backup_rrd.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.backup_rrd.sh b/etc/rc.backup_rrd.sh new file mode 100644 index 0000000..2e93b64 --- /dev/null +++ b/etc/rc.backup_rrd.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Save the rrd databases to the config path. +/etc/rc.conf_mount_rw +cd / && tar -czf /cf/conf/rrd.tgz -C / var/db/rrd/*.rrd +/etc/rc.conf_mount_ro |