I want to mirgrate my Nextcloud instance from a VPS to server in my home. I run the Nextcloud AIO Docker container, which uses Borg backup. The backup repo is about ~70 GB.

How would I best go about transferring it? Is using scp a good solution here (in combination with nohup so that I don’t have to keep my ssh session active)? Or is there some other best practice way of doing this?

  • @cm0002
    link
    152 months ago

    Hm, you really shouldn’t fuck around with Borg stuff, the Borg tend to recover their lost/dead tech

  • @[email protected]
    link
    fedilink
    English
    102 months ago

    I’d probably actually use mscp, which is scp but with multiple threads and is shockingly faster moving a ton of little files, which I assume this mostly is.

    I also tend to prefer screen/tmux instead of nohup, and then output verbose so I can keep an eye on shit and/or see failures, but that’s just a personal preference and doesn’t really matter in terms of performance/reliability/anything.

    • @[email protected]OP
      link
      fedilink
      22 months ago

      Nice, need to check out mscp! Thanks for the tip!

      If I had a stationary computer running, I would probably keep it running in a terminal window. I could connect a monitor to the server, but I don’t think it will be necessary. I will need to verify the backup before I restore it anyway, and it is not time urgent, so that if something goes wrong I can restart.

      • @solrize
        link
        52 months ago

        For some reason scp has long delays between file transfers. Rsync is a lot better. I didn’t know about mscp but rsync has sufficed for me.

      • @[email protected]
        link
        fedilink
        English
        42 months ago

        I would definitely screen it too, just to shield against my own errors (like closing the term window) bar that, I think any typical transfer tool would work, scp, rsync, …

      • @solrize
        link
        22 months ago

        Write a trivial shell script that does your scp or rsync or whatever, then run it in the background with nohup, and you won’t have to worry about disconnects unless the box crashes. You can view progress by looking at nohup.out.