From 39ab66a1a1b73ce174b920136d051c23d2dce165 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 14 Feb 2010 14:37:17 -0500 Subject: Adding backup script that can be run before upgrading which backs up everything including config.xml. Script gives instructions on how to restore a specific file as well. --- etc/rc.create_full_backup | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 etc/rc.create_full_backup (limited to 'etc') diff --git a/etc/rc.create_full_backup b/etc/rc.create_full_backup new file mode 100644 index 0000000..e2af12d --- /dev/null +++ b/etc/rc.create_full_backup @@ -0,0 +1,8 @@ +#!/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/* / +echo ">>> Backup completed. Note: this backup includes config.xml!" +echo ">>> To restore this backup run this command:" +echo " tar xzPf /root/$FILENAME -C /" -- cgit v1.1