summaryrefslogtreecommitdiffstats
path: root/etc/rc.create_full_backup
blob: 08d450c85756353784b6a952d6915675ae5bc609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

FILENAME="pfSense-full-backup-`date "+%Y%m%d-%H%M"`.tgz"
echo ">>> Creating full backup to $FILENAME"
tar czPf /root/$FILENAME \
	--exclude dev/* \
	--exclude tmp/* \
	--exclude var/db \
	--exclude var/run/* \
	--exclude root/* \
	--exclude var/empty/* \
	--exclude var/empty \
	/
echo ">>> Backup completed.  Note: this backup includes config.xml!"
echo ">>> To restore this backup run this command:"
echo "    tar xzPUf /root/$FILENAME -C /"
OpenPOWER on IntegriCloud