[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:general_admin:files_filesystem_copying_over_network [2013/02/10 16:28 (UTC)] – [How to copy files \ directories \ filesystems via network.] sycamorex | howtos:general_admin:files_filesystem_copying_over_network [2013/02/10 16:56 (UTC)] – [Copy Files / Directories] sycamorex | ||
---|---|---|---|
Line 1: | Line 1: | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
====== How to copy files \ directories | ====== How to copy files \ directories | ||
- | The article describes ways of copying content over network. When upgrading a home server, I copy all the data from the old server to a new system. In the examples below, I work from the new server and both servers are on the same subnet: | + | The article describes ways of copying content over network. |
+ | |||
+ | When upgrading a home server, I copy all the data from the old server to a new system. In the examples below, I work from the new server and both servers are on the same subnet: | ||
* New server (IP: 192.168.0.14) | * New server (IP: 192.168.0.14) | ||
* Old server (IP: 192.168.0.1) | * Old server (IP: 192.168.0.1) | ||
Line 9: | Line 11: | ||
- | ====== Files \ single folder copying | + | ====== |
- | If you need a copy of standalone | + | If you need to copy single |
- | + | ||
- | '' | + | |
- | There: | + | < |
- | | + | scp -r -v -p root@192.168.0.1:/etc / |
- | * | + | </ |
- | * -v gives us verbose output. \\ | + | |
- | In there example we copy "/etc" folder from 192.168.0.1 computer ( actually, " | + | Flag explanation: |
+ | * -r: recursive (copy all the content of '' | ||
+ | * -p: preserve file attributes | ||
+ | * -v: verbose output | ||
- | Sadly, but that command | + | In the example above we copy the ''/ |
- | Thanks to Patrick, " | + | Please note that the '' |
====== Copy whole filesystem ====== | ====== Copy whole filesystem ====== |