Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backing up .void.db file #47

Open
toidiu opened this issue Aug 9, 2019 · 2 comments
Open

backing up .void.db file #47

toidiu opened this issue Aug 9, 2019 · 2 comments

Comments

@toidiu
Copy link

toidiu commented Aug 9, 2019

Does anyone have a solution to backup the .void.db file. A private/public gist or github repo would be ideal.

A general and agnostic implementation would be to enable pre and post hooks for void. (pre-open?? post-close??). This would allow the implementation details for backups and other operations to be though out later.


git back up implementation assuming pre/post hooks

personally I use void only on one computer so my commands would look as follows

  • pre-hook would do a git pull
  • post-hook would do a git push
  • failure due to network or other reasons would fail silently.. maybe a place to show error messages within void??
@Moldisocks
Copy link

i wanted the same thing, just wrote a simple bash script to do it.
https://gist.github.com/Moldisocks/3b4b4acd83eb173f52983240816cb8e5

then a script to git pull, add, commit, push, etc...

then add an alias to .bashrc

alias void='wrap.sh -F "~/scripts/on_void_close.sh --push" void'
alias void-log='git -C ~/backup/voiddb log'

@Moldisocks
Copy link

i wanted the same thing, just wrote a simple bash script to do it. https://gist.github.com/Moldisocks/3b4b4acd83eb173f52983240816cb8e5

then a script to git pull, add, commit, push, etc...

then add an alias to .bashrc

alias void='wrap.sh -F "~/scripts/on_void_close.sh --push" void'
alias void-log='git -C ~/backup/voiddb log'

I'm realizing now that while this works, git isn't a great solution as the void db file is binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants