Project

General

Profile

« Previous | Next » 

Revision b7544cb0

Added by Scott Ullrich over 15 years ago

Ignore root/*

View differences:

etc/rc.create_full_backup
2 2

  
3 3
FILENAME="pfSense-full-backup-`date "+%Y%m%d-%H%M"`.tgz"
4 4
echo ">>> Creating full backup to $FILENAME"
5
tar czPf /root/$FILENAME --exclude dev/* --exclude tmp/* --exclude var/db --exclude var/run/* /
5
tar czPf /root/$FILENAME --exclude dev/* --exclude tmp/* --exclude var/db --exclude var/run/* --exclude root/* /
6 6
echo ">>> Backup completed.  Note: this backup includes config.xml!"
7 7
echo ">>> To restore this backup run this command:"
8 8
echo "    tar xzPf /root/$FILENAME -C /"

Also available in: Unified diff