Project

General

Profile

Download (455 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2

    
3
FILENAME="pfSense-full-backup-`date "+%Y%m%d-%H%M"`.tgz"
4
echo ">>> Creating full backup to $FILENAME"
5
tar czPf /root/$FILENAME \
6
	--exclude dev/* \
7
	--exclude tmp/* \
8
	--exclude var/db \
9
	--exclude var/run/* \
10
	--exclude root/* \
11
	--exclude var/empty/* \
12
	--exclude var/empty \
13
	/
14
echo ">>> Backup completed.  Note: this backup includes config.xml!"
15
echo ">>> To restore this backup run this command:"
16
echo "    tar xzPUf /root/$FILENAME -C /"
(39-39/91)