-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Backup & Restore Feature #245
Comments
Looks good on first glance. Some thoughts:
If the path set is not available (invalid permissions, unmounted volume etc.) the script should exit.
By default we could get the value from the config. If the path is not available the system should also support restoring only the wallet balances. |
If existing data directory exists we could prompt user for confirmation to overwrite. |
Issues with current version that need to be fixed:
|
1. Restore (depends on ExchangeUnion/xud#1041)
If there is already data in the xud's directory, try to start environment with that. If anything is corrupted, exit with an error.
If directory is empty, ask user is she wants to create a new xud environment or restore an existing one:
1 - continue as of now
2 -
Please paste the path to your xud backup files to restore your channel balance, your keys and other historical data: /glibberish
If backup path not valid (like above) then
If path does not contain any files named
xud
,raiden
lnd-BTC
orlnd-LTC
OR user just pressing ENTER, then:If backup path contains files named
xud
,lnd-BTC
andraiden
(but e.g. notlnd-LTC
), then:Then switch to xucli restore command output:
You are restoring an xud node key
and so on.Next step:
2. Backup (was merged in ExchangeUnion/xud#1032)
mainnet.conf
as e.g.backup-dir = "/media/USB/xud-backup"
in a new[backup]
sectionThere is just no way the user can get into xud ctl without specifying a functioning backup path.
Like all other command line parameters,
--backup-dir
CLI parameter simply overwrites whatever is written in config file.Test cases
Checking backup location... Failed.
& ask user to enter backup-dir path (check if available, writable - see above)The text was updated successfully, but these errors were encountered: