Skip to content

Instantly share code, notes, and snippets.

View centralhardware's full-sized avatar

Alexey Fedechkin centralhardware

View GitHub Profile
alex@alex-template ~/photoprisme> sudo docker-compose exec photoprism photoprism cleanup
DEBU[2022-07-17T10:20:31Z] config: successfully initialized [39.062742ms]
DEBU[2022-07-17T10:20:32Z] migrate: found 19 previous migrations
DEBU[2022-07-17T10:20:32Z] migrate: 20211121-094727 skipped
DEBU[2022-07-17T10:20:32Z] migrate: 20211124-120008 skipped
DEBU[2022-07-17T10:20:32Z] migrate: 20220329-030000 skipped
DEBU[2022-07-17T10:20:32Z] migrate: 20220329-040000 skipped
DEBU[2022-07-17T10:20:32Z] migrate: 20220329-050000 skipped
DEBU[2022-07-17T10:20:32Z] migrate: 20220329-060000 skipped
DEBU[2022-07-17T10:20:32Z] migrate: 20220329-061000 skipped
@centralhardware
centralhardware / gist:68772b61dd5528e36476b39ff90cc482
Last active July 15, 2022 17:47
running facial recognitions
time="2022-07-06T18:03:14Z" level=debug msg="metadata: running facial recognition"
--
time="2022-07-06T18:13:21Z" level=debug msg="index: updating covers"
time="2022-07-06T18:13:21Z" level=debug msg="covers: updated 0 albums [2.897002ms]"
time="2022-07-06T18:13:21Z" level=debug msg="covers: updated 0 folders [65.444929ms]"
time="2022-07-06T18:13:21Z" level=debug msg="covers: updated 0 months [25.136331ms]"
time="2022-07-06T18:13:21Z" level=debug msg="covers: updated 0 labels [124.256151ms]"
time="2022-07-06T18:13:21Z" level=debug msg="covers: updated 0 subjects [16.716755ms]"
time="2022-07-06T18:18:14Z" level=debug msg="metadata: running facial recognition"
--
version: "2.3"
services:
bonsai:
image: impworks/bonsai:latest
restart: unless-stopped
volumes:
- /media/alex-server/main/family archive/bonsai/images:/app/wwwroot/media
environment:
- ConnectionStrings__Database=Server=postgres;Port=5432;Database=bonsai;User Id=bonsai;Password=test;Persist Security Info=true
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres