Skip to content

Commit

Permalink
Update backupAllFiles.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsurkan-av authored Dec 19, 2024
1 parent 70eb287 commit e4fe022
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua_doc/backupAllFiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ if ((Test-Path -Path $($pathBackup + $fileSLSBackup) -PathType Leaf) -ne $false)
```shell
slsIP=192.168.1.247
tokenSLS="e9d38bedb6412e.....ed9575"
backupPath=$(date +%Y%m%d_%H%M)
backupPath=/var/backups/sls1/$(date +%Y%m%d_%H%M)
fileSLSBackup=backup_$backupPath.sls
mkdir $backupPath
# bakcup all Files
mkdir -p $backupPath
# backup all Files
url="$slsIP/api/storage?token=$tokenSLS&path=/"
result=$(curl $url 2>/dev/null)
if [[ $(echo $result | jq ".success") = "true" ]]; then
Expand Down Expand Up @@ -143,4 +143,4 @@ if name == "__main__":

# Перенести на SLS все LUA и JSON файлы из папки
#pushToSLS("https://sls.xxxxxxxxxxx.keenetic.pro", tokenSLS, "/Users/docn/Documents/SLS_files/sls_sls_files/")
```
```

0 comments on commit e4fe022

Please sign in to comment.