* add store methods for verification * add verify rest and auth * lint: fix double conversion of userID key * test for middleware, fix log without auth info * make all scripts with -e
9 lines
334 B
Bash
Executable File
9 lines
334 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# this scrips makes a backup file to /srv/var/userbackup-<site>-<timestamp>.gz
|
|
set -e
|
|
BACKUP_PATH=${BACKUP_PATH:-./var}
|
|
backup_file=${BACKUP_PATH}/userbackup-${1}-$(date +%s).gz
|
|
echo "make backup file for site $1 to $backup_file"
|
|
curl "http://127.0.0.1:8081/api/v1/admin/export?site=${1}&secret=${SECRET}" > ${backup_file}
|