Skip to content

Commit

Permalink
add ability to use steemdsync with ramdisk
Browse files Browse the repository at this point in the history
  • Loading branch information
jredbeard committed Mar 5, 2018
1 parent 42e2d95 commit dbb2d95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/sync-sv-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ if [[ ! -z "$BLOCKCHAIN_TIME" ]]; then
echo steemdsync: starting a new blockchainstate upload operation
cd ${COMPRESSPATH:-$HOME}
echo steemdsync: compressing blockchainstate...
tar cf blockchain.tar.bz2 --use-compress-prog=pbzip2 -C $HOME blockchain
if [[ "$USE_RAMDISK" ]]; then
tar vcf blockchain.tar.bz2 --use-compress-prog=pbzip2 -C $HOME blockchain -C /mnt/ramdisk blockchain
else
tar cf blockchain.tar.bz2 --use-compress-prog=pbzip2 -C $HOME blockchain
fi
if [[ ! $? -eq 0 ]]; then
echo NOTIFYALERT! steemdsync was unable to compress shared memory file, check the logs.
exit 1
Expand Down

0 comments on commit dbb2d95

Please sign in to comment.