Question: Best way in backing up everything of Galaxy
0
gravatar for jchen015
3.6 years ago by
jchen015 • 80
Singapore
jchen015 • 80 wrote:

Dear all

My local galaxy instance is hosted inside a server, located in a data center.

However, the data center is going to reset its power scheduler and there may be a risk for power failure, which may result in the loss of all data.

May I know of the best practices on backing up everything i had did on my local Galaxy instance?

 

Best,

Julius

backup • 1.1k views
ADD COMMENT • link • modified 3.6 years ago by Martin Čech ♦♦ 4.9k • written 3.6 years ago by jchen015 • 80
2
gravatar for Martin Čech
3.6 years ago by
Martin Čech ♦♦ 4.9k
United States
Martin Čech ♦♦ 4.9k wrote:

If you backup the DB, the database/ folder (which incldues datasets unless you specified different folder for it), the installed tools folder and the tool dependencies folder you should have everything you need to get back to the state of Galaxy you were at before. 

ADD COMMENT • link written 3.6 years ago by Martin Čech ♦♦ 4.9k

Hi Martin

Allow me to understand better.

Do you mean that, if I save the whole directory of Galaxy, and the server restarted, all I need to do is just put back this directory into the original path and everything will be back as per normal?

Best,

Julius

ADD REPLY • link written 3.6 years ago by jchen015 • 80

If you also backup and restore the database itself and in case that you did not configure any of the mentioned folders outside of the galaxy/ folder...yes it should.

ADD REPLY • link written 3.6 years ago by Martin Čech ♦♦ 4.9k

Hey Martin, by saving the whole directory means the whole database is backup already, am I right?

ADD REPLY • link written 3.6 years ago by jchen015 • 80

It depends what kind of database you are using. If it is MySQL or PostgreSQL then no, the database is not in the Galaxy folder.

Also note that installed tools folder defaults to ../shed_tools (one level above the Galaxy folder)

ADD REPLY • link written 3.6 years ago by Martin Čech ♦♦ 4.9k

I believe I am using SQLite, because I did not include any MySql or PostgresSQL into the implementation of Galaxy. 

Is that ok?

ADD REPLY • link written 3.6 years ago by jchen015 • 80
1

In that case locate the sqlite file. By default it should be somewhere in database/ folder

Also if you are using Galaxy for other things than testing you should use a real DB, not sqlite. It will save you headaches.

ADD REPLY • link written 3.6 years ago by Martin Čech ♦♦ 4.9k

Thanks for everything Martin.

I got it.

Best,

Julius

ADD REPLY • link written 3.6 years ago by jchen015 • 80
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 169 users visited in the last hour