backup - dd & nc does not terminate -


i try backup partition on network client using dd , nc after writing data (output implies this), nc not terminate. because of this, listening nc on remote side not terminate either. manual backups problem isn't hard when comes automating process running problems.

/dev # dd if=/dev/xxxx | nc host port 32768+0 records in 32768+0 records out 16777216 bytes (16.0mb) copied, 4.134436 seconds, 3.9mb/s [no promt] 

when try write output /dev/null command terminates after seconds perfectly.

/dev # dd if=/dev/xxxx of=/dev/null 32768+0 records in 32768+0 records out 16777216 bytes (16.0mb) copied, 1.303730 seconds, 12.3mb/s /dev # 

as alternative approach, use ssh instead of nc (explained here), ssh terminates have drawback entering password manually each time want schedule backup. additionally: have no chance modify host (sending device) os because embedded device read-only mounted partitions & squashfs.

the sending device uses busybox v1.20.2


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -