* 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
12 lines
386 B
Bash
12 lines
386 B
Bash
#!/bin/sh
|
|
echo "import backup file $1 to site $2"
|
|
|
|
echo "unpack $1"
|
|
gunzip -c /srv/var/backup/$1 >/tmp/backup.remark
|
|
|
|
size=`stat -c "%s" /tmp/backup.remark`
|
|
echo "source file size ${size}"
|
|
|
|
curl -X POST -H "Content-Type: application/json" --data-binary @/tmp/backup.remark "http://127.0.0.1:8081/api/v1/admin/import?site=${2}&provider=native&secret=${SECRET}"
|
|
rm -fq /tmp/backup.remark
|