[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 12:15 (UTC)] – [Files \ single folder copying] wisedraco | howtos:general_admin:files_filesystem_copying_over_network [2013/02/10 16:29 (UTC)] – [How to copy files \ directories \ filesystems via network.] 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 | ||
- | That small article | + | The article |
- | I want do this on my homeserver upgrade, copy all info from working "old" | + | |
- | In examples, | + | When upgrading a home server, I copy all the data from the old server to a new system. In the examples |
- | "Old" | + | * New server (IP: 192.168.0.14) |
+ | | ||
+ | |||
+ | Both the '' | ||
+ | |||
====== Files \ single folder copying ====== | ====== Files \ single folder copying ====== | ||
Line 12: | Line 17: | ||
There: | There: | ||
- | * -r key do recursively, i e copy all data in etc folder and its subfolders | + | * -r key do recursive |
- | * -p key preserve file attributes, like a creation, modification times | + | * -p key preserve file attributes, like a creation, modification times. |
* -v gives us verbose output. \\ | * -v gives us verbose output. \\ | ||
- | in there example we copy " | + | In there example we copy "/etc" folder from 192.168.0.1 computer ( actually, " |
- | Sadly, but that command ( scp ) cannot copy whole system disk, contains /proc, /dev and even /Lost+Found catalog, who is it in extX filesystem partition - at that places scp stuck and stops.\\ | + | Sadly, but that command ( scp ) cannot copy whole system disk, contains |
Thanks to Patrick, " | Thanks to Patrick, " | ||
Line 25: | Line 30: | ||
command | command | ||
- | + | <code bash> | |
- | '' | + | ssh root@192.168.0.1 "(cd / ; tar cf - . )" | (mkdir -p / |
+ | </ | ||
help us transfer full filesystems without stuck and pain from " | help us transfer full filesystems without stuck and pain from " | ||
Line 40: | Line 46: | ||
<!-- * Originally written by [[wiki: | <!-- * Originally written by [[wiki: | ||
<!-- * Contributions by [[wiki: | <!-- * Contributions by [[wiki: | ||
- | * Originally written by[[wiki: | + | |
- | * With help from Patrick Volkerding | + | * With help from Patrick Volkerding |
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must remove the tag-word " | <!-- You must remove the tag-word " | ||
{{tag> | {{tag> |