diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-17 21:03:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-17 21:03:11 +0000 |
commit | acdd8ddfacfa0fdc2274d55835c3aa73ca3ce43a (patch) | |
tree | 30db6f091b6f6e90fdc22403dd60ea1a2e122bcd /etc/rc.shutdown | |
parent | 23d5aa075fb4d6875032e98b4ba6ec511cc92088 (diff) | |
download | pfsense-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-x | etc/rc.shutdown | 3 |
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 |