1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-08 15:10:45 +02:00

Add Backup/Restore function

This commit is contained in:
gysmo38
2020-05-30 14:20:18 +02:00
committed by Julian Tatsch
parent d489ad044d
commit 92b7105f02
4 changed files with 128 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
CONF_FILE_DATE=$(date +%Y-%m-%d_%H-%M-%S)
CONF_FILE_NAME="savedConf-${CONF_FILE_DATE}.tar.gz"
CONF_PATH="/system/sdcard/config"
CONF_DEST="/system/sdcard/DCIM/Config"
if [ ! -d $CONF_DEST ]; then
mkdir $CONF_DEST
fi
tar -zcf $CONF_DEST/$CONF_FILE_NAME -C $CONF_PATH --exclude='*.dist' .