Skip to content

Instantly share code, notes, and snippets.

@rayhanadev
Created November 8, 2021 23:59
Show Gist options
  • Save rayhanadev/97ebf17292c7ee0936250d375fb691a4 to your computer and use it in GitHub Desktop.
Save rayhanadev/97ebf17292c7ee0936250d375fb691a4 to your computer and use it in GitHub Desktop.
Crosis4Furrets Examples

Crosis4Furrets Examples

FS Snapshot Uptime

import { Client } from 'crosis4furrets';

const client = new Client(process.env.TOKEN, 'replId');

await client.connect();
await client.persist();

setInterval(() => {
  console.log('File System Captured at:', new Date());
  await client.snapshot();
}, 10000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment