Presearch Docs
Presearch WebsiteNode SetupKeyword StakingSupport
  • Presearch Project
    • 🏠Welcome to Presearch πŸ‘‹
    • πŸͺ™Tokenomics
      • Contract Security
      • Liquidity Providing Uniswap
      • Liquidity Providing Aerodrome
    • πŸ’°PRE Purchasing Options
      • How to Buy PRE Tokens in the United States Using USD: A Comprehensive Guide
      • Supported Exchanges
      • Buy with Credit Card
      • How to Swap PRE in Trust Wallet
      • How to Swap PRE in Metamask Wallet
      • How to buy PRE in AhoraCrypto.com
    • πŸ—ΊοΈRoadmap
    • πŸ›‘οΈWeb3 - Safety, Troubleshooting & Best practices
    • ❓General FAQ
      • Which blockchain do PRE Tokens operate on?
      • How many tokens can I buy?
      • When I buy tokens, how do I pay?
      • When will I receive my tokens?
      • What can I use my tokens for?
      • How to withdraw tokens from Presearch?
      • What Wallets accept PRE?
      • Referral Program
      • How can I help promoting Presearch?
      • How can I contact the support team?
      • Who do I contact for marketing / promotional offers?
      • Presearch vision paper
  • Presearch Engine
    • ⭐What is Presearch Engine?
    • ❓Presearch Engine FAQ
      • How to set Presearch as the Default Search Engine on Desktop
      • How to Set Presearch as Your Default Search Engine on the Chrome App in iOS
      • How to Set Presearch as Your Default Search Engine on the Chrome App in Android
      • Am I tracked when I use Presearch?
      • How to use the Maps
      • How to Change the Color of the Search Engine
      • How to use the Testnet/Presearch engine
      • Why are my reward tokens not increasing when I search?
      • What is 'Authentic Search'?
      • What is Rewards Verification?
      • How to use AI
      • How to Add New Search Providers to your Presearch Dashboard
      • How to Change Password
      • How to Update profile
    • πŸ”ŽMetaSearch
    • NSFW Spicy Mode
  • PreGPT AI
    • ⭐What is PreGPT 2.0?
    • πŸ€–How to use PreGPT 2.0
    • ❓PreGPT FAQ
      • General usage
      • Subscription
      • Service operation
      • AI model limitations
      • Roadmap & Improvements
      • Policy
  • Nodes
    • ⭐What is a Node?
      • Hardware and system requirements
    • βš™οΈNode Setup Instructions
      • Generic installation instructions
      • Node Configuration Parameters
      • Individual Setup for various VPS providers
        • Running a node on FluxOS
          • Flux Node Grandfathering
        • Running a node on Akash
        • Running a node on ThreeFold
        • Running a Node on AWS
        • Running a Node on Racknerd
        • Running a node on Microsoft Azure
        • Running a node on Linux VPS
        • Running a node on Stack OS
      • Setup Nodes on Raspberry Pi
    • πŸ”§Troubleshooting and maintenance
      • Backing Up and Migrating Nodes
      • Alternative to Backing up nodes
      • Backup method with Docker Desktop for Windows
      • Backup method for Linux
    • πŸŽ‡Node Rewards
    • πŸ” API Access
    • 🫐Preberry
    • ❓Nodes FAQ
      • Can I already run a Presearch node?
      • Is Docker required to run a Presarch node?
      • Is there a node network explorer or some kind of overview page?
      • Will there be IPv6 support for Presearch nodes?
      • Can I run Presearch node besides Flux node?
      • IOS application to view node statistics
  • Keyword Staking
    • ⭐What is Keyword Staking?
    • 🀝Strategy for Staking PRE
    • πŸ“¦Ads Pricing - How much does it cost to advertise on Presearch?
    • ❓Keywords FAQ
      • How can I see keywords traffic?
      • How to report bogus/abusive ADs from Keyword staking?
  • Search Staking and Usage Rewards
    • ⭐What are Usage rewards?
      • How do PRE rewards work
      • How to claim search rewards
    • ❓Search Staking FAQ
      • How to use Search staking?
      • How to use the calculator for Search Stake
  • AD-FREE SEARCH FEATURE
    • How to use the Ad-Free Search Feature
  • Support
    • πŸ†˜Presearch Support
    • πŸ—žοΈPresearch News
    • πŸ“Press Release
  • NFTs
    • πŸ›£οΈ"The Road to Mainnet"
    • πŸ’»Supported Wallets
  • Community
    • πŸ› οΈCommunity Projects
    • πŸ§‘β€πŸ«Community Tutorials
      • Intense Investor
      • Martin Valk
      • Your Friend Andy
      • Keith Laye
      • Passive Aggressive Income
      • Lefty Chris - How to Create a Presearch Node
      • Crypto Laymen
      • Modo Tech
      • Mechanic Joe
      • TheNodeCatcher
  • apps
    • πŸ“±iOS
    • πŸ€–Android Browser
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Nodes
  2. Troubleshooting and maintenance

Alternative to Backing up nodes

We recommend always backing up your private key of your node, but here is an alternative to doing so

PreviousBacking Up and Migrating NodesNextBackup method with Docker Desktop for Windows

Last updated 1 year ago

Was this helpful?

In some cases, a node operator may lost access to their node's identity (the public/private key pair created when a node starts for the first time). Since the Presearch network is decentralized, it has no knowledge to your private key, which means that there is no way to recover the key unless you have backed it up.

While we recommend every node operator backup their public and private key-pair (instructions here), we understand that some providers (like FLUX) don't persist keypairs or make it possible to access them to back them up. If you have a node with an old stake that is grandfathered in (meaning new nodes require higher stakes), this can lead to your new nodes requiring higher PRE stakes than the old nodes you lost access to.

In order to accommodate these use cases and provide greater flexibility to our community, we are implementing a mechanism to "migrate" stakes from a previous, disconnected node, to a new node when it first registers on the network. This will allow you to more easily migrate from an old server to a new server without having to backup your keys, so long as you are okay with the node's stats starting over as a new node.

At a high level:

  1. As long as you don't delete your node in your Presearch account or modify the stake (even if the node is disconnected or you've lost your keys), you'll be able to migrate your grandfathered stake to a new node.

  2. If you're running on a Flux from before July 1, 2022, you'll need to in order to turn on this migration feature.

  3. The current mechanism for backing up your node's keys and restoring on another server still works and is required if you want to continue with your node's same identity, stats, and earning history after migration. This new mechanism is simply available as a convenience for those who don't have access to the node's public/private keys or don't want to deal with the hassle of backing them up and just want to migrate their old grandfathered in stake to a new node.

Essentially, on the startup of a node that you currently have setup, you need to use add the following new environment variables to your startup command beside where you add your registration code :

-e STAKE="disconnected:oldest,wallet:minimum" -e ALLOW_DISCONNECTED_STAKE_TRANSFER_AFTER="30m"

The STAKE parameter above says "if there's a disconnected node, migrate the stake from the oldest created node that is currently disconnected" (disconnected:oldest), and if there isn't a disconnected node with a stake then stake the current minimum stake from my wallet". You can alternatively just specify STAKE="disconnected:oldest" if you only want to migrate the Stake.

The ALLOW_DISCONNECTED_STAKE_TRANSFER_AFTER="30m" says that on the node it is added to, do NOT allow the stake to be migrated to another node unless it has been disconnected for at least 30 minutes. This prevents a stake from being accidentally migrated when a node is temporarily disconnected from the network due to a rebalance, a short network disruption, or a maintenance. This setting is optional, and all nodes have this delay turned OFF by default, meaning that their stakes can be migrated away anytime they are disconnected and a new node starts that specifies STAKE="disconnected:oldest"

The full startup command to specify all of the above parameters will then look like this (replacing $YOUR_REGISTRATION_CODE_HERE with the registration code from your dashboard).

docker stop presearch-node ; docker rm presearch-node ; docker stop presearch-auto-updater ; docker rm presearch-auto-updater ; docker run -d --name presearch-auto-updater --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock presearch/auto-updater --cleanup --interval 900 presearch-auto-updater presearch-node ; docker pull presearch/node ; docker run -dt --name presearch-node --restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE -e STAKE="disconnected:oldest,wallet:minimum" -e ALLOW_DISCONNECTED_STAKE_TRANSFER_AFTER="30m" presearch/node ; docker logs -f presearch-node

docker stop presearch-node & docker rm presearch-node & docker stop presearch-auto-updater & docker rm presearch-auto-updater & docker run -d --name presearch-auto-updater --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock presearch/auto-updater --cleanup --interval 900 presearch-auto-updater presearch-node & docker pull presearch/node & docker run -dt --name presearch-node --restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE -e STAKE="disconnected:oldest,wallet:minimum" -e ALLOW_DISCONNECTED_STAKE_TRANSFER_AFTER="30m" presearch/node & docker logs -f presearch-node

πŸ”§
update your Flux app