Introduce backup plugin to export/import settings

This commit is contained in:
Alexander
2013-10-26 23:46:38 +02:00
parent 59ef6510bc
commit 8981b9e613
7 changed files with 128 additions and 0 deletions

5
plugins/config/backup-export Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
VERSION="$1"
BASE_DIR="$2"
cat; find $BASE_DIR -regex ".*/ENV"

9
plugins/config/backup-import Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
VERSION="$1"
IMPORT_DIR="$2"
TARGET_DIR="$3"
cd $IMPORT_DIR
for file in `find . -regex ".*/ENV"`; do
cp $file $TARGET_DIR$file
done