Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Have A Question On The Trains-Server. Assuming I Am Using The Docker-Compose, I Would Like To Backup All Data As Introduced In The Upgrading Tutorial. What Will Happened If I Will Run

Hi, I have a question on the trains-server. Assuming I am using the docker-compose, I would like to backup all data as introduced in the upgrading tutorial. What will happened if I will run
sudo tar czvf ~/trains_backup.tgz /opt/trains/datawhile the dockers is working? Is it mandatory to stop the dockers?

  
  
Posted 4 years ago
Votes Newest

Answers 5


Hi AstonishingSeaturtle47 ,
As specified in section #6 in the Trains-Server launching instructions ( https://github.com/allegroai/trains-server/blob/master/docs/install_linux_mac.md#launching-the-trains-server-docker-in-linux-or-macos ), the data folder contains data for elastic, redis, mongodb and the fileserver. Of those, the fileserver data is totally safe to copy while the system it up. As for elastic, redis and mongodb, copying the files while the system is up is not considered safe - you can try it, but I wouldn't recommend it (any activity while you do it might cause you to end up with corrupted data).

  
  
Posted 4 years ago

Thanks, SuccessfulKoala55 So if that's the case what will happened if I will stop server (docker-compose stop) while agent is running an experiment? I tested it, and it seems that the experiment is continue running without any issues.

  
  
Posted 4 years ago

Having said that, we use the publicly-available dockers for elastic, redis and mongodb, and you can absilutely read their documentation and see the available backup procedures for each one. For example, for mongodb and elastic:
https://docs.mongodb.com/manual/core/backups/
https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html

  
  
Posted 4 years ago

Yeah, the agent and trains itself are configured to keep retrying for a fairly long time, so a server downtime (as long as it's not down for hours) will not affect your experiment.

  
  
Posted 4 years ago

Thanks you

  
  
Posted 4 years ago
1K Views
5 Answers
4 years ago
one year ago
Tags