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

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