this post was submitted on 20 Jul 2024
22 points (95.8% liked)

Linux

47923 readers
1171 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

top 6 comments
sorted by: hot top controversial new old
[–] cm0002@lemmy.world 16 points 3 months ago

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

[–] schizo@forum.uncomfortable.business 11 points 3 months ago (1 children)

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.

[–] cyberwolfie@lemmy.ml 3 points 3 months ago (3 children)

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@lemmy.world 5 points 3 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.

[–] taaz@biglemmowski.win 4 points 3 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@lemmy.world 2 points 3 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.