My aim is to create the arango database dump (with all the users and passwords, permissions, databases, collections, roles and so on) and then make a full restore of this data on the other arango server (that was installed from scratch and empty).
I am using the one-node configuration, arangodb version is 3.4.4 [linux].
On origin I make a dump of every database:
USER=root
PASSWORD=***
for db in $(arangosh --server.username "$USER" --server.password "$PASSWORD" --javascript.execute-string "db._databases().forEach(function(db) { print(db); });")
do
arangodump --output-directory /tmp/dump/"$db" --overwrite true --server.username "$USER" --server.password "$PASSWORD" --include-system-collections --server.database "$db"
done
Then I move the created folders to the empty arangodb server on this server go with:
arangorestore --input-directory "/tmp/dump/_system/"
arangorestore --input-directory "/tmp/dump/collection/"
arangorestore --input-directory "/tmp/dump/collection2/"
...one by one
The result if very far my expectations, I just get the collections in _system database for the root user (no other users, no databases).
What am I doing wrong? How can I make the full backup and restore?
Thanks in advance.