[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 revision | ||
howtos:general_admin:files_filesystem_copying_over_network [2013/02/10 16:29 (UTC)] – [How to copy files \ directories \ filesystems via network.] sycamorex | howtos:general_admin:files_filesystem_copying_over_network [2013/02/10 17:00 (UTC)] (current) – [Copy Files / Directories] sycamorex | ||
---|---|---|---|
Line 11: | Line 11: | ||
- | ====== Files \ single folder copying | + | ====== |
- | If you need a copy of standalone | + | If you need to copy single |
- | '' | + | < |
- | + | scp -r -v -p root@192.168.0.1:/ | |
- | There: | + | </code> |
- | * -r key do recursive , copy all data in "/etc" folder and all its subfolders. | + | |
- | * -p key preserve file attributes, like a creation, modification times. | + | |
- | * -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 |
- | command | + | The following |
<code bash> | <code bash> | ||
- | ssh root@192.168.0.1 "(cd / ; tar cf - . )" | (mkdir -p /From_Old_Server | + | ssh root@192.168.0.1 "(cd / ; tar cf - . )" | (mkdir -p /local_dir |
</ | </ | ||
- | help us transfer full filesystems without stuck and pain from " | ||
Line 51: | Line 50: | ||
<!-- 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> |