Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Off-topic
  3. How to erase data after server migration

How to erase data after server migration

Scheduled Pinned Locked Moved Off-topic
4 Posts 2 Posters 724 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    p44
    translator
    wrote on last edited by
    #1

    Dear all,

    I would like to upgrade a bare-metal server with new one.

    Do you have any suggestion about how to erase all data after migration?

    I ask this question because a simple formatting may not be enough, and it is likely that the old server will be resold by the provider to another customer.

    Thank's a lot for your patience

    girishG 1 Reply Last reply
    0
    • P p44

      Dear all,

      I would like to upgrade a bare-metal server with new one.

      Do you have any suggestion about how to erase all data after migration?

      I ask this question because a simple formatting may not be enough, and it is likely that the old server will be resold by the provider to another customer.

      Thank's a lot for your patience

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @p44 when creating 1 click images, i use https://github.com/digitalocean/marketplace-partners/blob/0e7020b44f1f368592bfe33133667feb3c4419c2/scripts/90-cleanup.sh#L49

      P 1 Reply Last reply
      2
      • girishG girish

        @p44 when creating 1 click images, i use https://github.com/digitalocean/marketplace-partners/blob/0e7020b44f1f368592bfe33133667feb3c4419c2/scripts/90-cleanup.sh#L49

        P Offline
        P Offline
        p44
        translator
        wrote on last edited by p44
        #3

        @girish Thank's a lot, where I have to run this code script?

        girishG 1 Reply Last reply
        0
        • P p44

          @girish Thank's a lot, where I have to run this code script?

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          @p44 sorry, I think I gave you the wrong script! That is meant only for zeroing out rest of the disk (like we do in 1-click images). To erase the entire disk, you probably have to do something else. My understanding is that atleast for VMs in public cloud, this is done automatically. This came up as a security issue in SSD servers a long time ago. VPS providers were not formatting them because it reduces life span of the disk.

          I guess as a hack, you can install plain ubuntu on the bare metal. And then, run the script command I posted earlier. Which probably has the same net effect as erasing. You have to run that command in the terminal/via ssh.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search