Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/compute/cloud-filesystem/help.tsx
Views: 687
import { Modal } from "antd";1import { A } from "@cocalc/frontend/components";23export function HelpModal({ open, setOpen }) {4return (5<Modal6width={700}7open={open}8onOk={() => setOpen(false)}9onCancel={() => setOpen(false)}10>11<HelpText />12</Modal>13);14}1516export function HelpText() {17return (18<div>19<h2>Filesystem Commands</h2>20<p>21Type <code>cocalc -h</code> in a terminal running on a compute server to22see the options for working with Cloud File Systems. In most cases you23should run the <code>cocalc</code> command in a terminal from in a24directory in the cloud file system (similar to how git is aware of the25repo you are in).26</p>27<p>28The <code>cocalc warmup</code> command is especially important to know29about.30</p>31<ul style={{ marginTop: "15px" }}>32<li>33<strong>34<code>cocalc warmup </code>:35</strong>{" "}36Downloads chunks for the current working directory to the local disk37cache for much faster subsequent access. The disk cache (which is in38<code>/data/.cloud-filesystem/cache/</code>) uses up to 90% of your39disk and survives reboots but not deprovisioning. You may get much40better performance with a Cloud File System by enlarging a compute41server's disk (which is easy to do at any time), since then more of it42can be used for cache.43</li>44<li>45<strong>46<code>cocalc backup</code>:{" "}47</strong>48Create and manage incremental backups. Run this command with no49arguments from within the cloud file system to make a backup that is50stored inside of the cloud file system itself. You can also make51backups to other cloud file systems or directories.52</li>53<li>54<strong>55<code>cocalc sync <source> <dest></code>:56</strong>{" "}57Efficiently sync files from a source directory to a dest directory.58This is similar to rsync but potentially much faster since it is aware59of how Cloud File Systems store data. It's also an efficient way to get60data into and out of your Cloud File System.61</li>62<li>63<strong>64<code>cocalc cloudfs stat</code>:65</strong>{" "}66Show realtime performance statistics of a Cloud File System. In67particular, you can see what objects are being uploaded or downloaded68to better understand network usage, and whether any data is not yet69uploaded before turning off a compute server.70</li>71</ul>72Cloud File Systems use <A href="https://juicefs.com/en/">JuiceFS</A> under73the hood, and there is also a{" "}74<A href="https://juicefs.com/docs/community/command_reference">75juicefs command76</A>{" "}77that you can explore.78</div>79);80}818283