Does a network to network copy hit the hard disk?

Here you can discuss every aspect of Debian. Note: not for support requests!

Does a network to network copy hit the hard disk?

Postby Munty Scruntfundle » 2019-02-10 09:59

Assuming I have two mounts, both on different NAS drives. If I 'cp' a file from (nas A) to (nas B) does the data hit the local hard drive at all? Or is it all handled in memory?

Reason for asking, I'm thinking of setting up a pi as a backup server, this will take a daily snapshot of my development stuff on one nas and store it on another. I have in the past wrecked an ssd in a couple of weeks with very disk intensive tasks, I don't want to be replacing system images every fortnight.

If the copy does 'stream' through the local drive I'd be better employing a small old pc with a physical disk.

Thanks folks.
Munty Scruntfundle
 
Posts: 54
Joined: 2018-11-27 16:53

Re: Does a network to network copy hit the hard disk?

Postby CwF » 2019-02-10 13:55

Generally no, the copy should not hit the local disk.
CwF
 
Posts: 400
Joined: 2018-06-20 15:16

Re: Does a network to network copy hit the hard disk?

Postby Head_on_a_Stick » 2019-02-10 15:25

Munty Scruntfundle wrote:If I 'cp' a file from (nas A) to (nas B) does the data hit the local hard drive at all?

Check yourself by using iotop.

Other I/O monitoring programs are available :)
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable