Changed the way to backup an existing .toml file

Use .bak extension
This commit is contained in:
quindecim 2019-10-30 05:27:35 -04:00
parent 7cd25e062e
commit 8b25264344
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ CONFIG_FILE="/data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml"
# sed -i -e 's/\[::1\]:53/\[::1\]:5354/g' $CONFIG_FILE
## quindecim
cp -afv $CONFIG_FILE ${CONFIG_FILE}-backup-`date +%Y%m%d%H%M`
cp -afv $CONFIG_FILE ${CONFIG_FILE}-`date +%Y%m%d%H%M`.bak
fi
cp -afv /data/media/0/dnscrypt-proxy/my-dnscrypt-proxy.toml $CONFIG_FILE