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

Create method to backup issues.db #1145

Closed
miketaylr opened this issue Jul 28, 2016 · 3 comments
Closed

Create method to backup issues.db #1145

miketaylr opened this issue Jul 28, 2016 · 3 comments

Comments

@miketaylr
Copy link
Member

This can be a command line argument to run.py: https://github.com/webcompat/webcompat.com/blob/master/run.py#L93

Something like python run.py --backup. This should:

Copy the existing issues.db to a folder that lives at $DB_BACKUP_LOCATION (or similar, somewhere configurable via secrets.py).

@deepthivenkat
Copy link
Member

deepthivenkat commented Aug 5, 2016

@miketaylr I have a question here. Before moving the issues.db to a backup location that $DB_BACKUP_LOCATION, I need to verify if issues.db exists.

Should I check if issues.db exists in webcompat server / just in the current directory(where ever the code is executed) ?

Should I ssh to a host and check if issues.db exists there and also send the backup folder to the host?

@miketaylr
Copy link
Member Author

Should I check if issues.db exists in webcompat server / just in the current directory(where ever the code is executed) ?

just in the current directory is fine.

Should I ssh to a host and check if issues.db exists there and also send the backup folder to the host?

Which host would this be?

deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 7, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 7, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 9, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 9, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 18, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 18, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 18, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 18, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 22, 2016
deepthivenkat added a commit to deepthivenkat/webcompat.com that referenced this issue Aug 24, 2016
miketaylr pushed a commit that referenced this issue Aug 24, 2016
Issue #1145 - Move issues.db to backup location configured in secrets.py
@miketaylr
Copy link
Member Author

This is merged now!

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