Restore from Backup

Restores game data from a file created by DATA BACKUP command.

Command

# local game data (windows)
Charon.exe DATA RESTORE --dataBase "c:\my app\gamedata.json" --input "c:\my app\backup.msgpkg" --inputFormat msgpack

# remote game data
Charon.exe DATA RESTORE --dataBase "https://charon.live/view/data/My_Game/develop/" --input "./backup.msgpkg" --inputFormat msgpack --credentials "<API-Key>"

Parameters

--dataBase

Absolute or relative path to game data. Use quotation marks if your path contains spaces.

# local file
--dataBase "c:\my app\gamedata.json"

# remote server
--dataBase "https://charon.live/view/data/My_Game/develop/"
--credentials

The API key used to access remote server in case of –dataBase being URL.

--input

Path to a backup file. Alternatively, you can use Standart Input or URL.

# standart input (default)
--input in
--input con

# absolute path (windows)
--input "c:\my app\backup.json"

# absolute path (unix)
--input "/user/data/backup.json"

# relative path (universal)
--input "./backup.json"

# remote location (HTTP)
--input "http://example.com/backup.json"

# remote location with authentication (FTP)
--input "ftp://user:password@example.com/backup.json"
--inputFormat

Format of imported data.

# Auto-detect by extension (default)
--inputFormat auto

# JSON
--inputFormat json

# Message Pack
--inputFormat msgpack
--inputFormattingOptions

Additional options for specified format.

This command supports universal parameters.