Skip to content
Snippets Groups Projects
Commit b0d80e4b authored by roadscape's avatar roadscape
Browse files

echo raw db size before compress

parent c817e180
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ service postgresql stop ...@@ -29,6 +29,7 @@ service postgresql stop
echo hivemindsync: starting a new state file upload operation, compressing directory... echo hivemindsync: starting a new state file upload operation, compressing directory...
cd /var/lib/postgresql/9.5 cd /var/lib/postgresql/9.5
echo hivemindsync: postgres data dir size is `du -hs .`
tar cf hivemind.tar.lz4 --use-compress-prog=lz4 -C /var/lib/postgresql/9.5 main tar cf hivemind.tar.lz4 --use-compress-prog=lz4 -C /var/lib/postgresql/9.5 main
if [[ ! $? -eq 0 ]]; then if [[ ! $? -eq 0 ]]; then
echo NOTIFYALERT! hivemindsync was unable to compress state file, check the logs. echo NOTIFYALERT! hivemindsync was unable to compress state file, check the logs.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment