From 26215d6ac88fcbf4858b21fd4c85ed15c84c7504 Mon Sep 17 00:00:00 2001 From: Jim Paris Date: Fri, 1 Jul 2016 16:17:29 -0400 Subject: [PATCH] Add scripts to backup/restore FS directory This lets you save the state of things to more quickly test other changes (for example, run customize-inner, then backup, then run the standalone_install scripts) --- backup.sh | 7 +++++++ restore.sh | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100755 backup.sh create mode 100755 restore.sh diff --git a/backup.sh b/backup.sh new file mode 100755 index 0000000..c26677a --- /dev/null +++ b/backup.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +. config || exit 0 +set -e + +echo Backing up filesystem... +sudo rsync -a --delete ${FS} ${FS}.backup diff --git a/restore.sh b/restore.sh new file mode 100755 index 0000000..bef4b2f --- /dev/null +++ b/restore.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +. config || exit 0 +set -e + +echo Restoring filesystem... +sudo rsync -a --delete ${FS}.backup ${FS}