remove last remnants of Paths, now only 1 directory per path AND created a new db-container subdir that takes the latest postgres image and adds a crontab / uses cron to run a bkup_users.sh script that dumps the person, refimg and linkage table so that if we ever blow the DB away, we dont lose the users
This commit is contained in:
7
db-container/bkup_users.sh
Executable file
7
db-container/bkup_users.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
pg_dump -a --user=pa --table=person --table=refimg --table=person_refimg_link > /tmp/new_users.sql
|
||||
tmp=`diff -q /docker-entrypoint-initdb.d/users.sql /tmp/new_users.sql`
|
||||
if (( $? !=0 && $(stat -c%s "/tmp/new_users.sql") > 200000 )) ; then
|
||||
cp -f /tmp/new_users.sql /docker-entrypoint-initdb.d/users.sql
|
||||
fi
|
||||
Reference in New Issue
Block a user