this post was submitted on 18 Oct 2023
2 points (100.0% liked)

Self-Hosted Main

511 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

Hey guys I recently purchased a 14tb ironwolf pro to replace my current 4tb hard drive that is used for my media server. I have tried to copy my media folder across in an SSH session but it got to about 20% and then I had a broken pipe. I have just set it off to copy again but I'm wondering if this will happen again? Is there a set time out on SSH sessions? Could there be an easier way to get this 4tb of data across to my new hard drive? I don't have access to my hard drive over SMB because the 4tb drive is having some issues in OMV. I also don't have a Linux desktop where I can read and copy over in ext4 format. Any assistance would be greatly appreciated

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

Two suggestions

  1. After connecting via ssh, run 'screen' (sudo apt install -y screen)

That will create a virtual session. If your ssh connection breaks, that virtual session still exists.

https://linuxize.com/post/how-to-use-linux-screen/

  1. Use some sort of copy command that can deal with restarting a partial copy

    rsync -av /mnt/4tb/* /mnt/14tb/

[–] [email protected] 1 points 1 year ago (2 children)

Dude awesome reply thank you! I'll wait for this session to break and give screen a crack and then rsync if screen doesn't get the job done.

[–] [email protected] 1 points 1 year ago (1 children)

Learn rsync, it is your only friend for these sorts of jobs. :-)

[–] [email protected] 1 points 1 year ago

That is becoming more and more evident. It seems like an excellent solution.

[–] [email protected] 1 points 1 year ago

tmux is a very good alternative to screen, if you come across that.