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

Need cron-job for backup of database #12

Open
yesco opened this issue Jul 17, 2015 · 11 comments
Open

Need cron-job for backup of database #12

yesco opened this issue Jul 17, 2015 · 11 comments
Labels

Comments

@yesco
Copy link
Contributor

yesco commented Jul 17, 2015

The database is currently stored on a virtual machine. The data should be backed up somewhere "else".

@lionello lionello added the bug label Aug 2, 2015
@lionello lionello changed the title Need cron-job for backup of database Need cron-job for backup of database / use SQLITE? Aug 3, 2015
@lionello
Copy link
Member

lionello commented Aug 3, 2015

How about we use SQLITE instead? Backup would be simply copying the file.

@lionello
Copy link
Member

lionello commented Aug 3, 2015

@lionello
Copy link
Member

lionello commented Aug 3, 2015

And we'd need http://php.net/manual/en/function.sha1.php to make up for lack of SHA1 in SQLITE.

@nihaopaul
Copy link
Member

If there is processing power pear has a software implementation

On Mon, 3 Aug 2015 11:36 Lio李欧 notifications@github.com wrote:

And we'd need http://php.net/manual/en/function.sha1.php to make up for
lack of SHA1 in SQLITE.


Reply to this email directly or view it on GitHub
#12 (comment).

@mermetbt
Copy link
Contributor

It's really easy to backup a MySQL database, just do in a daily cron (localy or remotely) something like the command:

mysqldump -h HOSTNAME -u USERNAME --password=PASSWORD --opt MYDB > backup_date '+%Y-%m-%d'.sql

This will make a file for each day.

@lionello
Copy link
Member

That part is easy, but where do we keep the files? I guess we can keep them on the server, but that hardly helps us: when the server crashes, both the VM and the backups crash. We need to keep the backups somewhere else. Perhaps on the XCJ NAS http://burty/ ?

@nihaopaul
Copy link
Member

Yeah. NFS Mount. Or. Github like we did with partkeepr..

Paul

On Sat, 12 Sep 2015 23:47 Lio李欧 notifications@github.com wrote:

That part is easy, but where do we keep the files? I guess we can keep
them on the server, but that hardly helps us: when the server crashes, both
the VM and the backups crash. We need to keep the backups somewhere else.
Perhaps on the XCJ NAS http://burty/ ?


Reply to this email directly or view it on GitHub
#12 (comment).

@lionello lionello assigned lionello and unassigned yesco Sep 27, 2015
@lionello
Copy link
Member

I'm changing to SQLite for use in Dimsumlabs.

@lionello
Copy link
Member

WIP https://github.com/dimsumlabs/bouncer/tree/sqlite

Need a migration script for moving MySQL data into SQLite DB.

@lionello
Copy link
Member

#49

@lionello lionello removed their assignment Nov 1, 2015
@lionello lionello changed the title Need cron-job for backup of database / use SQLITE? Need cron-job for backup of database Nov 1, 2015
@lionello
Copy link
Member

lionello commented Nov 1, 2015

I created a new issue for SQLite: #50

This issue will be used for the backup cronjob. Who will take this? @nihaopaul @mermetbt ?

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

No branches or pull requests

4 participants