ERROR Collection clonedCollection 's shard distribution is based on a that of collection prototypeCollection, which is not dumped along.arangodump - collection clonedCollection - output - directory "dump".Such collections cannot bedumped without the referenced collection or arangodump yields an error. shards are distributed inthe very same pattern as in the prototype collection. Starting with version 3.1.17, collections may be created with sharddistributionidentical to an existing prototypical collection i.e. Note that the version of the arangodump client tool needs to match theversion of the ArangoDB server it connects to. Thestructural information of the collection contains the number of shardsand the shard keys. Note that the data in the data file issorted first by shards and within each shard by ascending timestamp. Starting with Version 2.1 of ArangoDB, the arangodump tool alsosupports sharding and can be used to backup data from a Cluster.Simply point it to one of the Coordinators and itwill behave exactly as described above, working on sharded collectionsin the Cluster.Īs above, the output will be one structure description file and one datafile per sharded collection. Each line in a data file is a document insertion/update ordeletion marker, alongside with some meta data. indexes: contains the collection indexesDocument data for a collection will be saved in files with name pattern.parameters: contains the collection properties.Each structure file will contains a JSON objectwith these attributes: Structural information for a collection will be saved in files with name pattern. arangodump - collection myusers - collection myvalues - output - directory "dump".To restrict the dump to just specific collections, there is is the -collection option.It can be specified multiple times if required: arangodump - dump - data false - include - system - collections true - output - directory "dump".Set to true if you are using namedgraphs that you are interested in restoring.For example, to only dump structural information of all collections (including systemcollections), use: -include-system-collections : whether or not to include system collectionsin the dump.-dump-data : set to true to include documents in the dump.To adjust this, there are the following command-linearguments: Processed 43 collection ( s ), wrote 408173500 byte ( s ) into datafiles, sent 88 batch ( es )īy default, arangodump will dump both structural information and documents from allnon-system collections.When finished, arangodump will print out a summary line with some aggregatestatistics about what it did, e.g.: endpoint tcp : //192.168.173.13:8531 ername backup -all-databases true -output-directory "dump-multiple" In contrast to the above call -server.database must not be specified when dumpingall databases using -all-databases true: endpoint tcp : //192.168.173.13:8531 ername backup -server.database mydb -output-directory "dump" Here’s an example of dumping data from a non-standard endpoint, using a dedicated database name: -server.database : name of the database to connect toNote that the specified user must have access to the databases. all-databases true: must have access to all databases, and not specify a database. thentication : whether or not to use authenticationIf you want to connect to a different database or dump all databases you can additionalyuse the following startup options: -server.password : password to use (omit this and you’ll be prompted for thepassword).-server.endpoint : endpoint to connect to.To override the endpoint, or specify a different user, use one of thefollowing startup options: arangodump - output - directory "dump" - overwrite trueĪrangodump will by default connect to the _system database using the defaultendpoint.If you are positive that you want to overwrite data in the outputdirectory, you can use the parameter -overwrite true to confirm this: This isan intentional security measure to prevent you from accidentally overwriting alreadydumped data. This will connect to an ArangoDB server and dump all non-system collections fromthe default database ( _system) into an output directory named dump.Invoking arangodump will fail if the output directory already exists.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |