-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdo-cli.ts
21 lines (20 loc) · 1 KB
/
do-cli.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { createSnapshot } from "./src/droplet/create-snapshot.js";
import { copySnapshot } from "./src/droplet/copy-snapshot.js";
import {removeSnapshot} from "./src/remove-snapshot.js";
import {createVolumeSnapshot} from "./src/volume/create-snapshot.js";
console.log("*****************************************");
console.log("** CREATE DROPLET SNAPSHOT **");
console.log("*****************************************");
await createSnapshot();
console.log("*****************************************");
console.log("** COPY DROPLET SNAPSHOT **");
console.log("*****************************************");
await copySnapshot();
console.log("*****************************************");
console.log("** CREATE VOLUME SNAPSHOT **");
console.log("*****************************************");
await createVolumeSnapshot();
console.log("*********************************");
console.log("** REMOVE OLD SNAPSHOT **");
console.log("*********************************");
await removeSnapshot();