blog:copy_a_filesystem_from_one_computer_to_another_using_tar_and_netcat
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
blog:copy_a_filesystem_from_one_computer_to_another_using_tar_and_netcat [2009-10-12 09:59] – created brb | blog:copy_a_filesystem_from_one_computer_to_another_using_tar_and_netcat [2009-10-12 10:00] – brb | ||
---|---|---|---|
Line 3: | Line 3: | ||
If you need to transfer an entire filesystem from one machine to another, for example, when you get a new computer, do the following steps. | If you need to transfer an entire filesystem from one machine to another, for example, when you get a new computer, do the following steps. | ||
- | | + | |
- | | + | |
+ | |||
+ | cd /mnt/sda1 | ||
tar -czpsf - . | pv -b | nc -l 3333 | tar -czpsf - . | pv -b | nc -l 3333 | ||
- | - On the destination machine, mount the partition to receive the filesystem, and start the process: | + | |
+ | * On the destination machine, mount the partition to receive the filesystem, and start the process: | ||
cd /mnt/sda1 | cd /mnt/sda1 | ||
nc 192.168.10.101 3333 | pv -b | tar -xzpsf - | nc 192.168.10.101 3333 | pv -b | tar -xzpsf - |
blog/copy_a_filesystem_from_one_computer_to_another_using_tar_and_netcat.txt · Last modified: 2009-10-12 10:18 by brb