问题
If I need to duplicate the contents of a database "foo" into a second database "bar" 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?
回答1:
Try to use arangodump and arangorestore tools, for example:
arangodump --server.database myDatabase1 --output-directory "myDumpFolder"
arangorestore --server.database myDatabase2 --input-directory "myDumpFolder"
来源:https://stackoverflow.com/questions/27827073/dump-database-and-re-import-under-a-new-name