Merge pull request #265 from asm89/backup
Introduce `backup` plugin to export/import settings
This commit is contained in:
5
plugins/config/backup-export
Executable file
5
plugins/config/backup-export
Executable 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
9
plugins/config/backup-import
Executable 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
|
||||
Reference in New Issue
Block a user