Dump database and re-import under a new name

If I need to duplicate the contents of the database "foo" in the second "bar" of the database with MySQL, I would usually do something like this:

mysqldump -u root foo > foo.sql
mysql -u root -e "CREATE DATABASE bar;"
mysql -u root bar < foo.sql

What would be the equivalent procedure with ArangoDB?

+4
source share
1 answer

Try using arangodump and arangorestore tools, for example:

arangodump --server.database myDatabase1 --output-directory "myDumpFolder"
arangorestore --server.database myDatabase2 --input-directory "myDumpFolder"
+5
source

Source: https://habr.com/ru/post/1570349/


All Articles