1
1
import { Modal } from "antd" ;
2
+ import { A } from "@cocalc/frontend/components" ;
2
3
3
4
export function HelpModal ( { open, setOpen } ) {
4
5
return (
@@ -17,44 +18,64 @@ export function HelpText() {
17
18
return (
18
19
< div >
19
20
< h2 > Filesystem Commands</ h2 >
20
- Type < code > cocalc fs -h</ code > in a terminal running on a compute server
21
- to see the options for the filesystem cocalc subcommand. This command has
22
- several helpful subcommands for working with Cloud Filesystems, including
23
- the following:
21
+ < p >
22
+ Type < code > cocalc -h</ code > in a terminal running on a compute server to
23
+ see the options for working with Cloud Filesystems. In most cases you
24
+ should run the < code > cocalc</ code > command in a terminal from in a
25
+ directory in the cloud filesystem (similar to how git is aware of the
26
+ repo you are in).
27
+ </ p >
28
+ < p >
29
+ The < code > cocalc warmup</ code > command is especially important to know
30
+ about.
31
+ </ p >
24
32
< ul style = { { marginTop : "15px" } } >
25
33
< li >
26
34
< strong >
27
- < code > cocalc fs stats <path> </ code > :
35
+ < code > cocalc warmup </ code > :
28
36
</ strong > { " " }
29
- Show realtime performance statistics of a Cloud Filesystem. In
30
- particular, you can see what objects are being uploaded or downloaded
31
- to better understand network usage, and whether any data is not yet
32
- uploaded before turning off a compute server.
37
+ Downloads chunks for the current working directory to the local disk
38
+ cache for much faster subsequent access. The disk cache (which is in
39
+ < code > /data/.cloud-filesystem/cache/</ code > ) uses up to 90% of your
40
+ disk and survives reboots but not deprovisioning. You may get much
41
+ better performance with a Cloud Filesystem by enlarging a compute
42
+ server's disk (which is easy to do at any time), since then more of it
43
+ can be used for cache.
33
44
</ li >
34
-
35
45
< li >
36
46
< strong >
37
- < code > cocalc fs sync <source> <dest></ code > :
47
+ < code > cocalc backup</ code > :{ " " }
48
+ </ strong >
49
+ Create and manage incremental backups. Run this command with no
50
+ arguments from within the cloud filesystem to make a backup that is
51
+ stored inside of the cloud filesystem itself. You can also make
52
+ backups to other cloud filesystems or directories.
53
+ </ li >
54
+ < li >
55
+ < strong >
56
+ < code > cocalc sync <source> <dest></ code > :
38
57
</ strong > { " " }
39
58
Efficiently sync files from a source directory to a dest directory.
40
59
This is similar to rsync but potentially much faster since it is aware
41
- of how Cloud Filesystem stores data. It's also an efficient way to get
60
+ of how Cloud Filesystems store data. It's also an efficient way to get
42
61
data into and out of your Cloud Filesystem.
43
62
</ li >
44
-
45
63
< li >
46
64
< strong >
47
- < code > cocalc fs warmup <path> </ code > :
65
+ < code > cocalc cloudfs stat </ code > :
48
66
</ strong > { " " }
49
- Downloads all the chunks for the given path to the local disk cache
50
- for much faster subsequent access. The disk cache (which is in
51
- < code > /data/.cloud-filesystem/cache/</ code > ) uses up to 90% of your
52
- disk and survives reboots but not deprovisioning. You may get much
53
- better performance with a Cloud Filesystem by enlarging your compute
54
- servers main disk (which is easy to do at any time), since then more
55
- of it can be used for cache.
67
+ Show realtime performance statistics of a Cloud Filesystem. In
68
+ particular, you can see what objects are being uploaded or downloaded
69
+ to better understand network usage, and whether any data is not yet
70
+ uploaded before turning off a compute server.
56
71
</ li >
57
72
</ ul >
73
+ Cloud Filesystems use < A href = "https://juicefs.com/en/" > JuiceFS</ A > under
74
+ the hood, and there is also a{ " " }
75
+ < A href = "https://juicefs.com/docs/community/command_reference" >
76
+ juicefs command
77
+ </ A > { " " }
78
+ that you can explore.
58
79
</ div >
59
80
) ;
60
81
}
0 commit comments