{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4422","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4422/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4422/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4422/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4422","id":90142786,"number":4422,"title":"[question] Best way to upgrade orientdb?","user":{"login":"StarpTech","id":1764424,"avatar_url":"https://avatars.githubusercontent.com/u/1764424?v=3","gravatar_id":"","url":"https://api.github.com/users/StarpTech","html_url":"https://github.com/StarpTech","followers_url":"https://api.github.com/users/StarpTech/followers","following_url":"https://api.github.com/users/StarpTech/following{/other_user}","gists_url":"https://api.github.com/users/StarpTech/gists{/gist_id}","starred_url":"https://api.github.com/users/StarpTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarpTech/subscriptions","organizations_url":"https://api.github.com/users/StarpTech/orgs","repos_url":"https://api.github.com/users/StarpTech/repos","events_url":"https://api.github.com/users/StarpTech/events{/privacy}","received_events_url":"https://api.github.com/users/StarpTech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-22T16:11:02Z","updated_at":"2015-06-24T13:37:37Z","closed_at":null,"body":"With Import & Export I had a lot failures also reported as issues here.\r\nIs it possible to do a drop in replacement with the db and what do I have to pay attention?\r\n\r\nHow do I upgrade orientdb without any troubles? Can I just overwritte all files ?\r\n\r\nI don't find any good and precise documentation for this scenario. Every import and upgrade is scary for me. Please help. Thanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/114870651","html_url":"https://github.com/orientechnologies/orientdb/issues/4422#issuecomment-114870651","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4422","id":114870651,"user":{"login":"red-0ne","id":231488,"avatar_url":"https://avatars.githubusercontent.com/u/231488?v=3","gravatar_id":"","url":"https://api.github.com/users/red-0ne","html_url":"https://github.com/red-0ne","followers_url":"https://api.github.com/users/red-0ne/followers","following_url":"https://api.github.com/users/red-0ne/following{/other_user}","gists_url":"https://api.github.com/users/red-0ne/gists{/gist_id}","starred_url":"https://api.github.com/users/red-0ne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/red-0ne/subscriptions","organizations_url":"https://api.github.com/users/red-0ne/orgs","repos_url":"https://api.github.com/users/red-0ne/repos","events_url":"https://api.github.com/users/red-0ne/events{/privacy}","received_events_url":"https://api.github.com/users/red-0ne/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T13:37:37Z","updated_at":"2015-06-24T13:37:37Z","body":"This is exactly what I am talking about. Keeping your db files untouched.\r\n\r\n1 . Have an `orientdb-server-config.xml` somewhere outside orientdb directory (`/etc/orientdb/orientdb-server-config.xml`)\r\n2 . Edit `/etc/orientdb/orientdb-server-config.xml` by adding (or replacing ?) the `server.database.path` property. It should point somewhere outside your orientdbdirectory:\r\n```xml\r\n<properties>\r\n...\r\n  <entry value=\"/var/lib/orientdb\" name=\"server.database.path\" />\r\n</properties>\r\n```\r\n3 . Get your new orientdb as usual (remove old, download and extract). Personally I perfer updating using git:\r\n```bash\r\ncd /my/path/to/orientdb\r\ngit pull origin master\r\nant clean installg\r\n```\r\n4 . And finally start the server with your \"old\" config file:\r\n```bash\r\nCONFIG_FILE=\"/etc/orientdb/orientdb-server-config.xml\" /my/path/to/orientdb/bin/server.sh\r\n```\r\nThe update consists of steps 3 and 4 only."}}