mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-27 04:30:34 +03:00
Add backup files
This commit is contained in:
@@ -133,6 +133,20 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
DIR="/etc/config"
|
||||
DIR_BACKUP="/root/backup2"
|
||||
config_files="network
|
||||
firewall"
|
||||
|
||||
if [ ! -d "$DIR_BACKUP" ]
|
||||
then
|
||||
echo "Backup files..."
|
||||
mkdir -p $DIR_BACKUP
|
||||
for file in $config_files
|
||||
do
|
||||
cp -f "$DIR/$file" "$DIR_BACKUP/$file"
|
||||
done
|
||||
fi
|
||||
|
||||
#запрос конфигурации WARP
|
||||
result=$(curl 'https://warp.llimonix.pw/api/warp' \
|
||||
|
||||
Reference in New Issue
Block a user