Skip to content

Commit e9eef0a

Browse files
authored
tips workflow
1 parent 02ccafa commit e9eef0a

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

docs/sessions/transfer_tips/README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,39 @@ tags:
2828
- A folder with content then behaves like ONE file.
2929
- Usage: ``tar -cf archive.tar /path/files`` or ``tar -cf archive.tar /path/folder``
3030
- 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]``
3232

3333
???- tip "Extract/inflate"
3434

3535
- ``gunzip compressed_file.gz``
3636
- ``tar -xf archive.tar``
3737
- ``tar -xzf compressed_archive.tar.gz``
38+
- the extracted folders will inherit the old name and internal structure
3839

39-
???- tip "``gzip`` cheat sheet"
40+
???- question "Can I use archiving and compressing in all transfer methods?"
4041

41-
- [``gzip`` manual](https://www.gnu.org/software/gzip/manual/gzip.html#Sample)
42+
- Yes!
4243

43-
???- tip "``tar`` cheat sheet"
44+
???- example "Workflow"
4445

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/``
4649

47-
???- question "Can I use archiving and compressing in all transfer methods?"
50+
- Transfer data
51+
52+
- Use FileZilla/scp/rsync/sftp
4853

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)
5064

5165
## Server to server
5266

0 commit comments

Comments
 (0)