{"__v":1,"_id":"57618fecab49980e008a56a7","category":{"__v":0,"_id":"5716338cb5af590e00a0ff1d","project":"566c97797831040d003eb3bc","version":"566c97797831040d003eb3bf","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-04-19T13:33:00.678Z","from_sync":false,"order":1,"slug":"graphenedb-faq","title":"GrapheneDB basics"},"parentDoc":null,"project":"566c97797831040d003eb3bc","user":"57167c775d90dc170060ef97","version":{"__v":10,"_id":"566c97797831040d003eb3bf","project":"566c97797831040d003eb3bc","createdAt":"2015-12-12T21:54:01.970Z","releaseDate":"2015-12-12T21:54:01.970Z","categories":["566c977a7831040d003eb3c0","5716338cb5af590e00a0ff1d","57163947893cbe0e002d75fc","57163f41b5af590e00a0ff35","57cd74d2873de50e00724a2f","57cd7de8baaee30e0093ecc3","57d6ada046dcc30e007dd15e","57fdc2b31646dc0e0010480a","57fdd8b86c9d141900d87bf1","58767da4d89ef20f003b6f1e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-15T17:27:08.364Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"GrapheneDB offers daily, weekly, monthly, and on-demand backups. These backups are included in all our Standard, Performance, and Enterprise plans — no configuration is needed. All backups are retained for a week and are available as downloadable tarballs.\n\nBefore making the backup available, GrapheneDB performs a consistency check to make sure everything is well with your data store.\n\nOnce the backup is completed, GrapheneDB offers the following alternatives:\n\n* [Download](#section-accessing-backups) backup to your local machine\n* [In-place restore](#section-restore-database-from-backup) backup into your current database\n* [Restore backup](#section-create-a-new-database-from-backup) into a new database\n\n\n## Creating backups\n\nTo access your backups, please navigate to the *Backups* tab of your GrapheneDB database management area.\n\nThere are two different ways of taking a backup on GrapheneDB. One is the automatic backup, which will start automatically after the database is created. The other one is by taking a manual snapshot.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Note\",\n  \"body\": \"Don’t worry, we won’t stop your database to perform a scheduled backup or a manual snapshot. There is no downtime involved in the operation.\"\n}\n[/block]\n### Automatic backup schedule\n\nIf your plan features backups, GrapheneDB will automatically take a snapshot of your database every 24 hours.\n\nYou can change the time when the backup is taken by navigating to the *Backups* tab of your database management area and clicking on the *Change* link next to the current time info.\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/4fdf5bc-image00.png\",\n        \"image00.png\",\n        374,\n        100,\n        \"#515362\"\n      ]\n    }\n  ]\n}\n[/block]\n### Take manual snapshot\n\nYou can also take a manual snapshot whenever you need it. To do this, navigate to the Backups tab of your database management area and click on the *Take snapshot now* button.\n\nYou will see at the top of the backups history a new entry with the new backup state.\n\n### Retention policy\n\nBackups are kept for 1 week after they are created.\n\n## Accessing backups\n\nAll completed backups will appear as a new row in your backups history list, ordered by date. Additionally, you’ll find the size of the backup and type (manual or scheduled).\n\nIf you want to download a specific backup, you just have to click on the *download* link on the right side of the row. A compressed file will be automatically downloaded to your local machine.\n\nOnce you have downloaded the file, you’ll need to extract and decompress the contents into your desired directory using the following command: \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ tar -xvf myfilename.tgz\",\n      \"language\": \"shell\",\n      \"name\": \"Example (UNIX)\"\n    }\n  ]\n}\n[/block]\n## Restoring backups\n\n### Restore database from backup\n\nYou can easily restore your database from a backup. To do this, just navigate to the *Backups* tab of your database management area, find the backup you want to restore to (snapshot date is shown) and click on the *Restore* link.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"Restoring your database from a backup will replace the data set of your database with the the backup. This action can’t be undone.\",\n  \"title\": \"Keep in mind\"\n}\n[/block]\n### Create a new database from backup\n\nSometimes it is useful to create a new database from a stored backup, for example, to migrate to a new database with different configuration.\n\nCreating a new database from a backup is similar to creating a brand new database. To do this, navigate to the *Backups* tab and click on *Create DB from backup*. A form will appear (similar to the ‘create a new database’ form), where you can select the database and backup you want to use.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"Neo4j versions lower than the selected database will be disabled to ensure compatibility.\",\n  \"title\": \"Note\"\n}\n[/block]","excerpt":"","slug":"backups","type":"basic","title":"Backups and recovery"}

Backups and recovery


GrapheneDB offers daily, weekly, monthly, and on-demand backups. These backups are included in all our Standard, Performance, and Enterprise plans — no configuration is needed. All backups are retained for a week and are available as downloadable tarballs. Before making the backup available, GrapheneDB performs a consistency check to make sure everything is well with your data store. Once the backup is completed, GrapheneDB offers the following alternatives: * [Download](#section-accessing-backups) backup to your local machine * [In-place restore](#section-restore-database-from-backup) backup into your current database * [Restore backup](#section-create-a-new-database-from-backup) into a new database ## Creating backups To access your backups, please navigate to the *Backups* tab of your GrapheneDB database management area. There are two different ways of taking a backup on GrapheneDB. One is the automatic backup, which will start automatically after the database is created. The other one is by taking a manual snapshot. [block:callout] { "type": "info", "title": "Note", "body": "Don’t worry, we won’t stop your database to perform a scheduled backup or a manual snapshot. There is no downtime involved in the operation." } [/block] ### Automatic backup schedule If your plan features backups, GrapheneDB will automatically take a snapshot of your database every 24 hours. You can change the time when the backup is taken by navigating to the *Backups* tab of your database management area and clicking on the *Change* link next to the current time info. [block:image] { "images": [ { "image": [ "https://files.readme.io/4fdf5bc-image00.png", "image00.png", 374, 100, "#515362" ] } ] } [/block] ### Take manual snapshot You can also take a manual snapshot whenever you need it. To do this, navigate to the Backups tab of your database management area and click on the *Take snapshot now* button. You will see at the top of the backups history a new entry with the new backup state. ### Retention policy Backups are kept for 1 week after they are created. ## Accessing backups All completed backups will appear as a new row in your backups history list, ordered by date. Additionally, you’ll find the size of the backup and type (manual or scheduled). If you want to download a specific backup, you just have to click on the *download* link on the right side of the row. A compressed file will be automatically downloaded to your local machine. Once you have downloaded the file, you’ll need to extract and decompress the contents into your desired directory using the following command: [block:code] { "codes": [ { "code": "$ tar -xvf myfilename.tgz", "language": "shell", "name": "Example (UNIX)" } ] } [/block] ## Restoring backups ### Restore database from backup You can easily restore your database from a backup. To do this, just navigate to the *Backups* tab of your database management area, find the backup you want to restore to (snapshot date is shown) and click on the *Restore* link. [block:callout] { "type": "warning", "body": "Restoring your database from a backup will replace the data set of your database with the the backup. This action can’t be undone.", "title": "Keep in mind" } [/block] ### Create a new database from backup Sometimes it is useful to create a new database from a stored backup, for example, to migrate to a new database with different configuration. Creating a new database from a backup is similar to creating a brand new database. To do this, navigate to the *Backups* tab and click on *Create DB from backup*. A form will appear (similar to the ‘create a new database’ form), where you can select the database and backup you want to use. [block:callout] { "type": "info", "body": "Neo4j versions lower than the selected database will be disabled to ensure compatibility.", "title": "Note" } [/block]