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
      • Node Reward Changes
    • πŸ” 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

Backing Up and Migrating Nodes

Transfer your node to a new server, retaining the node identity, stats, and grandfathered status

Sometimes, you may want to migrate your node to a new computer or VPS, while maintaining the current node's identity, grandfathered status, and node stats.

In order to move your Presearch node to a new server, you need to back up the security keys of the node while it’s still running, copy them to the new server, stop the old node, run the Presearch Node Restore command on the new server, then start the node up on the new server.

For the steps below, old-server is the old server your node was running on, and new-server is the new server you are moving the node onto. Text surrounded by {} should be replaced with the proper actual value.

  1. Login to the old-server via SSH (using the Terminal on macOS/Linux or PuTTY if you are on Windows) where your node is currently running. Make a copy of the security keys

    docker cp presearch-node:/app/node/.keys presearch-node-keys
  2. Now stop the node running on old-server by running

    docker stop presearch-node ; docker rm presearch-node ; docker stop presearch-auto-updater ; docker rm presearch-auto-updater
  3. Disconnect from old-server so you are back at your local command line.

  4. Download the keys backup you just made from your old-server to your local computer:

    scp -r -P {old-server-port} {username}@{old-server-ip}:presearch-node-keys ~/
  5. Upload the node security keys to new-server from your local computer:

    scp -r -P {new-server-SSH-PORT} presearch-node-keys {username}@{new-server-IP}:
  6. Now login to new-server:

    ssh -p {new-server-SSH-PORT} {username}@{new-server-IP}
  7. Run ls to confirm that you see the folder (presearch-node-keys) you uploaded in step 3

  8. Let's now run the Node restore command:

    docker run -dt --rm -v presearch-node-storage:/app/node --name presearch-restore presearch/node ; docker cp presearch-node-keys/. presearch-restore:/app/node/.keys/ ; docker stop presearch-restore

    You'll see docker launch the restore code, which takes about 10 seconds to complete.

  9. Once that's done, you can launch the node similar to how you would a new 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 presearch/node && sleep 10 && docker logs presearch-node

    You should see the message info: Node is listening for searches... if all was started properly.

  10. Refresh your dashboard, and you should see that your node is back online.

You can now remove the uploaded security key files from new-server:

rm -rf ~/presearch-node-keys

We recommend making a backup of all of your nodes' security keys.

PreviousTroubleshooting and maintenanceNextAlternative to Backing up nodes

Last updated 1 year ago

Was this helpful?

Adapted from , which also provides direction on managing and backing up multiple nodes at once.

πŸ”§
https://nabeards.com/posts/moving-a-presearch-node-to-another-server/