summaryrefslogtreecommitdiffstats
path: root/etc/rc.create_full_backup
blob: 143e6527b121167b73e266b5b0262f6c1f12886f (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 /root/$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