summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-17 21:03:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-17 21:03:11 +0000
commitacdd8ddfacfa0fdc2274d55835c3aa73ca3ce43a (patch)
tree30db6f091b6f6e90fdc22403dd60ea1a2e122bcd /etc/rc.shutdown
parent23d5aa075fb4d6875032e98b4ba6ec511cc92088 (diff)
downloadpfsense-acdd8ddfacfa0fdc2274d55835c3aa73ca3ce43a.zip
pfsense-acdd8ddfacfa0fdc2274d55835c3aa73ca3ce43a.tar.gz
MFC 11518
Save the rrd databases to the config space on reboot.
Diffstat (limited to 'etc/rc.shutdown')
-rwxr-xr-xetc/rc.shutdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index 3585e74..1589204 100755
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -27,4 +27,7 @@ export PATH
PLATFORM=`cat /etc/platform`
if [ "$PLATFORM" = "pfSense" ]; then
rm -rf /tmp/*
+else
+ # Save the rrd databases to the config path.
+ tar -czf /cf/conf/rrd.tgz /var/db/rrd/*.rrd
fi
OpenPOWER on IntegriCloud