* extend post info with ts and add info implemenation to engine * info controller * remove unused * docker froendly new test * tree find to include post info struct * remove leftovers from codeconv * test for empty tree request * add func name to error rest report * test with disabled proxy * add read only age and reject updates on old posts * lint: shaddow err * make info calls fast. needs migration! * fix backup restore script * increase limiter timeout * add local exporter * migrate list to new info * fix rest list tests * add manual backup script * default backup path * fix eait on sec change failing rss tests * add RO status bucket and rest * add admin RO controller test
9 lines
328 B
Bash
Executable File
9 lines
328 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# this scrips makes a backup file to /srv/var/userbackup-<site>-<timestamp>.gz
|
|
|
|
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}
|