@@ -28,25 +28,39 @@ tags:
28
28
- A folder with content then behaves like ONE file.
29
29
- Usage: `` tar -cf archive.tar /path/files `` or `` tar -cf archive.tar /path/folder ``
30
30
- While TARing you may * compress* the data as well!
31
- - `` tar -czf archive.tar.gz /path/files ``
31
+ - `` tar -czf archive.tar.gz [ /path/files] ``
32
32
33
33
???- tip "Extract/inflate"
34
34
35
35
- ``gunzip compressed_file.gz``
36
36
- ``tar -xf archive.tar``
37
37
- ``tar -xzf compressed_archive.tar.gz``
38
+ - the extracted folders will inherit the old name and internal structure
38
39
39
- ???- tip " `` gzip `` cheat sheet "
40
+ ???- question "Can I use archiving and compressing in all transfer methods? "
40
41
41
- - [``gzip`` manual](https://www.gnu.org/software/gzip/manual/gzip.html#Sample)
42
+ - Yes!
42
43
43
- ???- tip " `` tar `` cheat sheet "
44
+ ???- example "Workflow "
44
45
45
- - [``tar`` manual](https://devhints.io/tar)
46
+ - Archive and compress a folder with many large files
47
+
48
+ ``tar -czf manylargefiles_folder.tar.gz manylargefiles_folder/``
46
49
47
- ???- question "Can I use archiving and compressing in all transfer methods?"
50
+ - Transfer data
51
+
52
+ - Use FileZilla/scp/rsync/sftp
48
53
49
- - Yes!
54
+ - Extract at target destination
55
+
56
+ ``tar -xzf manylargefiles_folder.tar.gz``
57
+
58
+ - You should now have ``manylargefiles_folder/`` again at the target destination!
59
+
60
+ ???- tip "Cheat sheets"
61
+
62
+ - [``gzip`` manual](https://www.gnu.org/software/gzip/manual/gzip.html#Sample)
63
+ - [``tar`` manual](https://devhints.io/tar)
50
64
51
65
## Server to server
52
66
0 commit comments