root/etc/rc.backup_rrd.sh @ c28fae2f
1 |
#!/bin/sh
|
---|---|
2 |
|
3 |
# Save the rrd databases to the config path.
|
4 |
if [ -d "/var/db/rrd" ]; then |
5 |
/etc/rc.conf_mount_rw |
6 |
cd / && tar -czf /cf/conf/rrd.tgz -C / var/db/rrd/*.rrd |
7 |
/etc/rc.conf_mount_ro |
8 |
fi
|