summaryrefslogtreecommitdiffstats
path: root/etc/rc.backup_rrd.sh
blob: b39578dfa42c1562cf41decf29e29be003c288df (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

# Save the rrd databases to the config path.
if [ -d "/var/db/rrd" ]; then
	/etc/rc.conf_mount_rw
	cd / && tar -czf /cf/conf/rrd.tgz -C / var/db/rrd/*.rrd
	/etc/rc.conf_mount_ro
fi
OpenPOWER on IntegriCloud