You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
-2
Original file line number
Diff line number
Diff line change
@@ -133,8 +133,6 @@ The following commands are available via the Smartnode client:
133
133
-`rocketpool service install-update-tracker, d` - Install the update tracker that provides the available system update count to the metrics dashboard
134
134
-`rocketpool service check-cpu-features, ccf` - Checks if your CPU supports all of the features required by the "modern" version of certain client images. If not, it prints what features are missing.
135
135
-`rocketpool service get-config-yaml` - Generate YAML that shows the current configuration schema, including all of the parameters and their descriptions
136
-
-`rocketpool service export-eth1-data` - Exports the execution client (eth1) chain data to an external folder. Use this if you want to back up your chain data before switching execution clients.
137
-
-`rocketpool service import-eth1-data` - Imports execution client (eth1) chain data from an external folder. Use this if you want to restore the data from an execution client that you previously backed up.
138
136
-`rocketpool service resync-eth1` - Deletes the main ETH1 client's chain data and resyncs it from scratch. Only use this as a last resort!
139
137
-`rocketpool service resync-eth2` - Deletes the ETH2 client's chain data and resyncs it from scratch. Only use this as a last resort!
140
138
-`rocketpool service terminate, t` - Deletes all of the Rocket Pool Docker containers and volumes, including your ETH1 and ETH2 chain data and your Prometheus database (if metrics are enabled). Only use this if you are cleaning up the Smartnode and want to start over!
Usage: "Exports the execution client (eth1) chain data to an external folder. Use this if you want to back up your chain data before switching execution clients.",
457
-
UsageText: "rocketpool service export-eth1-data target-folder",
458
-
Flags: []cli.Flag{
459
-
cli.BoolFlag{
460
-
Name: "force",
461
-
Usage: "Bypass the free space check on the target folder",
462
-
},
463
-
cli.BoolFlag{
464
-
Name: "dirty",
465
-
Usage: "Exports the execution (eth1) chain data without stopping the client. Requires a second pass (much faster) to sync the remaining files without the client running.",
Usage: "Imports execution client (eth1) chain data from an external folder. Use this if you want to restore the data from an execution client that you previously backed up.",
489
-
UsageText: "rocketpool service import-eth1-data source-folder",
Usage: fmt.Sprintf("%sDeletes the main ETH1 client's chain data and resyncs it from scratch. Only use this as a last resort!%s", colorRed, colorReset),
fmt.Printf("%sWARNING: Couldn't check the disk space used by the Execution client volume: %s\nPlease verify you have enough free space to store the chain data in the target folder before proceeding!%s\n\n", colorRed, err.Error(), colorReset)
fmt.Printf("%sWARNING: Couldn't get the free space available on the target folder: %s\nPlease verify you have enough free space to store the chain data in the target folder before proceeding!%s\n\n", colorRed, err.Error(), colorReset)
1697
-
} else {
1698
-
freeSpaceHuman:=humanize.IBytes(targetFree)
1699
-
fmt.Printf("%sChain data size: %s%s\n", colorLightBlue, volumeBytesHuman, colorReset)
1700
-
fmt.Printf("%sTarget dir free space: %s%s\n", colorLightBlue, freeSpaceHuman, colorReset)
1701
-
iftargetFree<volumeBytes {
1702
-
returnfmt.Errorf("%sYour target directory does not have enough space to hold the chain data. Please free up more space and try again or use the --force flag to ignore this check.%s", colorRed, colorReset)
1703
-
}
1704
-
1705
-
fmt.Printf("%sYour target directory has enough space to store the chain data.%s\n\n", colorGreen, colorReset)
1706
-
}
1707
-
}
1708
-
}
1709
-
1710
-
// Prompt for confirmation
1711
-
fmt.Printf("%sNOTE: Once started, this process *will not stop* until the export is complete - even if you exit the command with Ctrl+C.\nPlease do not exit until it finishes so you can watch its progress.%s\n\n", colorYellow, colorReset)
1712
-
if!(c.Bool("yes") ||cliutils.Confirm("Are you sure you want to export your execution layer chain data?")) {
1713
-
fmt.Println("Cancelled.")
1714
-
returnnil
1715
-
}
1716
-
1717
-
varresultstring
1718
-
// If dirty flag is used, copies chain data without stopping the eth1 client.
1719
-
// This requires a second quick pass to sync the remaining files after stopping the client.
fmt.Printf("%sWARNING: Couldn't check the disk space used by the source folder: %s\nPlease verify you have enough free space to import the chain data before proceeding!%s\n\n", colorRed, err.Error(), colorReset)
fmt.Printf("%sWARNING: Couldn't check the disk space free on the Docker volume partition: %s\nPlease verify you have enough free space to import the chain data before proceeding!%s\n\n", colorRed, err.Error(), colorReset)
fmt.Printf("%sWARNING: Couldn't check the disk space free on the Docker volume partition: %s\nPlease verify you have enough free space to import the chain data before proceeding!%s\n\n", colorRed, err.Error(), colorReset)
1818
-
} else {
1819
-
freeSpaceHuman:=humanize.IBytes(targetFree)
1820
-
1821
-
fmt.Printf("%sChain data size: %s%s\n", colorLightBlue, sourceBytesHuman, colorReset)
returnfmt.Errorf("%sYour Docker drive does not have enough space to hold the chain data. Please free up more space and try again.%s", colorRed, colorReset)
1825
-
}
1826
-
1827
-
fmt.Printf("%sYour Docker drive has enough space to store the chain data.%s\n\n", colorGreen, colorReset)
1828
-
}
1829
-
}
1830
-
}
1831
-
1832
-
// Prompt for confirmation
1833
-
fmt.Printf("%sNOTE: Importing will *delete* your existing chain data!%s\n\n", colorYellow, colorReset)
1834
-
fmt.Printf("%sOnce started, this process *will not stop* until the import is complete - even if you exit the command with Ctrl+C.\nPlease do not exit until it finishes so you can watch its progress.%s\n\n", colorYellow, colorReset)
1835
-
if!(c.Bool("yes") ||cliutils.Confirm("Are you sure you want to delete your existing execution layer chain data and import other data from a backup?")) {
0 commit comments