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

Produce backups of critical files #6

Closed
jim618 opened this issue Jun 1, 2015 · 4 comments
Closed

Produce backups of critical files #6

jim618 opened this issue Jun 1, 2015 · 4 comments
Assignees

Comments

@jim618
Copy link
Contributor

jim618 commented Jun 1, 2015

Produce a timestamped zip file of critical files (e.g. wallet ids) for easy consumption for other processes (e.g. rsync)

@jim618 jim618 self-assigned this Jun 1, 2015
@jim618
Copy link
Contributor Author

jim618 commented Jun 1, 2015

I have written a bash script that zips up everything in the var/brit/matcher/store directory that contains all the wallet id files and the BRIT addresses given out per day.

It is: create-brit-backup.sh in the top level of the BRIT server project

It produces a file e.g.

/var/brit/matcher/backup/backup-2015-06-01-17-48-42.zip

There is now a cron.daily job running on the hamburg server to produce these backups daily.

To do next is an rsync script that Jim / Gary can run from their machines to copy these files down to their machines to ensure there is a remote backup

jim618 added a commit that referenced this issue Jun 2, 2015
@jim618
Copy link
Contributor Author

jim618 commented Jun 2, 2015

I have pushed a script "rsync-brit-jim.sh" which rsyncs the hamburg BRIT backups to a local directory: /var/brit/hamburg

It's basically just an rsync and has the username 'jim' in it.
If @gary-rowe just wants to copy it and tweak the username etc it'll work.
It also expects an entry in ~/.ssh/config to the server - there's a comment in the script itself with an example.

This should get the job done for now.

Awaiting review and closing.

@jim618
Copy link
Contributor Author

jim618 commented Jun 2, 2015

To remind myself to run the backup I have entered a line in my .bash_profile:

Recently run ? : /Users/jim/IdeaProjects/bitcoin-solutions/brit-server/rsync-brit-jim.sh

Then everytime I fire up a terminal I'll get a little reminder

@gary-rowe
Copy link
Contributor

Just reviewed the script. It looks like it'll do the job on an ad hoc basis.

Closing.

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