mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 04:42:24 +03:00
Gzip backups
This commit is contained in:
parent
5895055163
commit
65048e2d57
@ -111,6 +111,8 @@ Next, create `upload.sh`:
|
||||
|
||||
~~~
|
||||
cd /root/guide/state
|
||||
rm -f *.gz
|
||||
gzip -k -f *.log
|
||||
git add -A
|
||||
GIT_COMMITTER_NAME='auto' GIT_COMMITTER_EMAIL='' git commit --author="auto <>" -m "`date`"
|
||||
git push
|
||||
|
3
Makefile
3
Makefile
@ -16,6 +16,7 @@ back/db:
|
||||
rm -rf back/state
|
||||
git clone --depth 1 https://github.com/aelve/guide-database.git
|
||||
mv guide-database back/state
|
||||
(cd back/state && gzip -d *.gz)
|
||||
|
||||
# Test that the official database can be loaded
|
||||
.PHONY: back/test-db
|
||||
@ -23,6 +24,7 @@ back/test-db: back
|
||||
if [ -d back/state ]; then mv back/state back/state-old; fi
|
||||
git clone --depth 1 https://github.com/aelve/guide-database.git
|
||||
mv guide-database back/state
|
||||
(cd back/state && gzip -d *.gz)
|
||||
(cd back/state && git branch -v && git status && ls)
|
||||
stack exec --cwd back -- guide --dry-run
|
||||
rm -rf back/state
|
||||
@ -41,6 +43,7 @@ back/travis-docker:
|
||||
rm -rf docker/back/files && mkdir docker/back/files
|
||||
git clone --depth 1 https://github.com/aelve/guide-database.git \
|
||||
docker/back/files/state
|
||||
(cd docker/back/files/state && gzip -d *.gz)
|
||||
rm -rf docker/back/files/state/.git
|
||||
cp .stack-work/install/*/*/*/bin/guide docker/back/files/
|
||||
cp -R back/{static,templates} docker/back/files/
|
||||
|
Loading…
Reference in New Issue
Block a user