Browse Source

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)
tags/nilmbuntu-5
Jim Paris 7 years ago
parent
commit
26215d6ac8
2 changed files with 14 additions and 0 deletions
  1. +7
    -0
      backup.sh
  2. +7
    -0
      restore.sh

+ 7
- 0
backup.sh View File

@@ -0,0 +1,7 @@
#!/bin/bash

. config || exit 0
set -e

echo Backing up filesystem...
sudo rsync -a --delete ${FS} ${FS}.backup

+ 7
- 0
restore.sh View File

@@ -0,0 +1,7 @@
#!/bin/bash

. config || exit 0
set -e

echo Restoring filesystem...
sudo rsync -a --delete ${FS}.backup ${FS}

Loading…
Cancel
Save