parrot-blackbox 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +251 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,8 +110,14 @@ and pending backups.
|
|
|
110
110
|
## Managing cloud accounts (rclone remotes)
|
|
111
111
|
|
|
112
112
|
Every MEGA / Google Drive login becomes one rclone remote = one pool account.
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
There are **two ways** to connect them:
|
|
114
|
+
|
|
115
|
+
- **Guided (recommended):** `parrot-blackbox` creates the rclone remote *for
|
|
116
|
+
you* — no menus. `parrot-blackbox remote add mega` prompts for the remote
|
|
117
|
+
name, email, password and optional 2FA, then registers it.
|
|
118
|
+
- **Manual:** configure remote(s) yourself with the raw `rclone config` — the
|
|
119
|
+
**complete step-by-step walkthrough of every prompt and every letter is
|
|
120
|
+
documented below** in the next section.
|
|
115
121
|
|
|
116
122
|
**Add** (guided — creates the remote AND saves it in the pool):
|
|
117
123
|
```bash
|
|
@@ -150,6 +156,249 @@ passwords, and the allocator's manifests are safe to share.
|
|
|
150
156
|
|
|
151
157
|
---
|
|
152
158
|
|
|
159
|
+
## 📖 The full `rclone config` manual walkthrough (every letter, every prompt)
|
|
160
|
+
|
|
161
|
+
> The wizard's *"Configure rclone myself, then register the remote"* path (and
|
|
162
|
+
> the `parrot-blackbox remote config` command) open rclone's interactive menu.
|
|
163
|
+
> This is that menu, explained **prompt by prompt** so you never get lost.
|
|
164
|
+
> The quick alternative that skips all of this: `parrot-blackbox remote add mega`
|
|
165
|
+
> (or `gdrive`) creates the remote for you automatically.
|
|
166
|
+
|
|
167
|
+
### 1. The main menu — what each letter does
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
Current remotes:
|
|
171
|
+
|
|
172
|
+
Name Type
|
|
173
|
+
==== ====
|
|
174
|
+
mega mega
|
|
175
|
+
|
|
176
|
+
e) Edit existing remote
|
|
177
|
+
n) New remote
|
|
178
|
+
d) Delete remote
|
|
179
|
+
r) Rename remote
|
|
180
|
+
c) Copy remote
|
|
181
|
+
s) Set configuration password
|
|
182
|
+
q) Quit config
|
|
183
|
+
e/n/d/r/c/s/q>
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
| Letter | Word | What it does |
|
|
187
|
+
|---|---|---|
|
|
188
|
+
| `e` | **Edit** | Change an **existing** remote's login (email / password / 2FA) or storage type |
|
|
189
|
+
| `n` | **New** | **Create a brand-new remote** → the flow below |
|
|
190
|
+
| `d` | **Delete** | Remove a remote from the config — rclone asks `y` to confirm |
|
|
191
|
+
| `r` | **Rename** | Give an existing remote a different name |
|
|
192
|
+
| `c` | **Copy** | Duplicate an existing remote under a new name (handy for a 2nd account of the same type) |
|
|
193
|
+
| `s` | **Set config password** | Lock the whole `rclone.conf` with a passphrase (optional; skip unless you want it) |
|
|
194
|
+
| `q` | **Quit** | Leave the menu → you return to parrot-blackbox |
|
|
195
|
+
|
|
196
|
+
> **The letters you'll use most:** `n` (new remote), `e` (fix a wrong password),
|
|
197
|
+
> `d` (remove an account you don't use), `q` (done).
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### 2. Adding a MEGA remote (storage number **39**)
|
|
202
|
+
|
|
203
|
+
Start the menu with `n`, then follow exactly:
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
e/n/d/r/c/s/q> n ⬅ type the letter n and press Enter
|
|
207
|
+
Enter name for new remote.
|
|
208
|
+
name> mega-account-1 ⬅ type the remote name and press Enter
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
> **What the name is:** a label for this login. Use something meaningful per
|
|
212
|
+
> account, e.g. `mega-account-1`, `mega-2`, `mega-main`. You'll type this exact
|
|
213
|
+
> name into parrot-blackbox later.
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
Option Storage.
|
|
217
|
+
Type of storage to configure.
|
|
218
|
+
...long numbered list of 68 providers...
|
|
219
|
+
Storage> 39 ⬅ type 39 for Mega and press Enter
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
> **The storage number for each provider:**
|
|
223
|
+
> | Provider | Number to type | (what it says in the list) |
|
|
224
|
+
> |---|---|---|
|
|
225
|
+
> | **Mega** (the one you use) | **`39`** | `39 / Mega - Tier 2 \ (mega)` |
|
|
226
|
+
> | **Google Drive** | **`24`** | `24 / Google Drive - Tier 1 \ (drive)` |
|
|
227
|
+
|
|
228
|
+
Next rclone asks for login details — this means **the email + password of the
|
|
229
|
+
cloud account** you want to back up to:
|
|
230
|
+
|
|
231
|
+
```
|
|
232
|
+
Option user.
|
|
233
|
+
User name.
|
|
234
|
+
Enter a value.
|
|
235
|
+
user> info.donartkins.ke@gmail.com ⬅ type the account's EMAIL and press Enter
|
|
236
|
+
|
|
237
|
+
Option pass.
|
|
238
|
+
Password.
|
|
239
|
+
Choose an alternative below.
|
|
240
|
+
y) Yes, type in my own password
|
|
241
|
+
g) Generate random password
|
|
242
|
+
y/g> y ⬅ type y to enter your own password
|
|
243
|
+
|
|
244
|
+
Enter the password:
|
|
245
|
+
password: ******** ⬅ type the account PASSWORD (invisible)
|
|
246
|
+
Confirm the password:
|
|
247
|
+
password: ******** ⬅ type it again to confirm
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
> **What this means:** `user` = the **email address** of your MEGA account.
|
|
251
|
+
> `pass` = that account's **password**. rclone encrypts it before saving it —
|
|
252
|
+
> you'll see `*** ENCRYPTED ***` later.
|
|
253
|
+
|
|
254
|
+
After the password, optional but present for accounts that have it:
|
|
255
|
+
|
|
256
|
+
```
|
|
257
|
+
Option 2fa.
|
|
258
|
+
The 2FA code of your MEGA account if the account is set up with one
|
|
259
|
+
Enter a value. Press Enter to leave empty.
|
|
260
|
+
2fa> ⬅ if you use 2FA on this MEGA account, enter the
|
|
261
|
+
current 6-digit code here; if not, press Enter
|
|
262
|
+
```
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
### 3. Advanced config — ⚠️ **SAY NO** (this is the mistake you kept making)
|
|
266
|
+
|
|
267
|
+
rclone then asks `Edit advanced config?` **twice**. You almost always want
|
|
268
|
+
**`n` (No)** here — parrot-blackbox works fine with the defaults:
|
|
269
|
+
|
|
270
|
+
```
|
|
271
|
+
Edit advanced config?
|
|
272
|
+
y) Yes
|
|
273
|
+
n) No (default)
|
|
274
|
+
y/n> n ⬅ type n and press Enter ✅ SAY NO
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
If you mistakenly choose `y`, rclone will march you through `debug`,
|
|
278
|
+
`hard_delete`, `use_https`, `encoding`, `description`… — you can press **Enter**
|
|
279
|
+
on every single one to accept defaults, then it asks `Edit advanced config?`
|
|
280
|
+
again → answer `n` the second time. But the easy path is simply **`n` the
|
|
281
|
+
first time**.
|
|
282
|
+
|
|
283
|
+
When it finishes you get a confirmation:
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
Configuration complete.
|
|
287
|
+
Options:
|
|
288
|
+
- type: mega
|
|
289
|
+
- user: info.donartkins.ke@gmail.com
|
|
290
|
+
- pass: *** ENCRYPTED ***
|
|
291
|
+
Keep this "mega-account-1" remote?
|
|
292
|
+
y) Yes this is OK (default)
|
|
293
|
+
e) Edit this remote
|
|
294
|
+
d) Delete this remote
|
|
295
|
+
y/e/d> y ⬅ type y to save this remote
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
> **Important:** this confirmation `y` ("keep this remote") is DIFFERENT from
|
|
299
|
+
> the advanced-config prompt. Here you DO want `y` — it saves the remote you
|
|
300
|
+
> just created.
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
### 4. Adding a Google Drive remote (storage number **24**)
|
|
305
|
+
|
|
306
|
+
Same `n` flow, but the two differences are the storage number and the auth step:
|
|
307
|
+
|
|
308
|
+
```
|
|
309
|
+
e/n/d/r/c/s/q> n ⬅ n for new
|
|
310
|
+
name> gdrive-account-1 ⬅ the remote name
|
|
311
|
+
Storage> 24 ⬅ 24 = Google Drive
|
|
312
|
+
|
|
313
|
+
-- rclone then prints a big "Use auto config?" section --
|
|
314
|
+
Use auto config?
|
|
315
|
+
y) Yes
|
|
316
|
+
n) No
|
|
317
|
+
y/n> y ⬅ y (opens your browser automatically)
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
rclone opens a **browser page asking you to sign in to Google** and grant
|
|
321
|
+
access — log in, allow, done. Back in the terminal:
|
|
322
|
+
|
|
323
|
+
```
|
|
324
|
+
Edit advanced config?
|
|
325
|
+
y) Yes
|
|
326
|
+
n) No (default)
|
|
327
|
+
y/n> n ⬅ ✅ NO
|
|
328
|
+
|
|
329
|
+
Keep this "gdrive-account-1" remote?
|
|
330
|
+
y) Yes this is OK (default)
|
|
331
|
+
y/e/d> y ⬅ y to keep it
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
> If the browser doesn't open (headless), choose the manual option rclone gives
|
|
335
|
+
> you and paste the printed verification code into `http://localhost:53682` —
|
|
336
|
+
> but on your desktop the browser usually just opens.
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
### 5. After you quit (`q`) — register the remotes
|
|
341
|
+
|
|
342
|
+
You arrive back in parrot-blackbox with the message
|
|
343
|
+
`Starting rclone config — follow its prompts, then come back.` Once rclone's
|
|
344
|
+
menu is closed (`q`), the wizard automatically shows the remotes it found and
|
|
345
|
+
lets you pick which to register into the pool:
|
|
346
|
+
|
|
347
|
+
```
|
|
348
|
+
Select which rclone remotes to add to the backup pool: ⬅ tick your new names
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
Each one is then tagged with its provider as you type it into rclone. If you
|
|
352
|
+
quit the wizard before registering, that's fine — either re-run
|
|
353
|
+
`parrot-blackbox` or:
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
parrot-blackbox account add mega mega-account-1 # provider + the remote name you chose in rclone
|
|
357
|
+
parrot-blackbox remote list # confirm it's now registered
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
### 6. Editing / renaming / deleting a remote later (the `e` `r` `d` letters)
|
|
363
|
+
|
|
364
|
+
Fix a wrong password, rename, or delete an old account:
|
|
365
|
+
|
|
366
|
+
```
|
|
367
|
+
e/n/d/r/c/s/q> e ⬅ e = Edit an existing remote
|
|
368
|
+
Choose a number from below ... ⬅ pick the remote to edit
|
|
369
|
+
Edit remote
|
|
370
|
+
u) Update current
|
|
371
|
+
y) Yes type in my own password
|
|
372
|
+
g) Generate random password
|
|
373
|
+
q) Quit config
|
|
374
|
+
u> y ⬅ choose what to change (u = update this field)
|
|
375
|
+
Name or type of remote > user ⬅ which field: user, pass, 2fa, type, ...
|
|
376
|
+
user> new@email.com ⬅ the new value
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
Rename:
|
|
380
|
+
```
|
|
381
|
+
e/n/d/r/c/s/q> r ⬅ r = Rename
|
|
382
|
+
Old name> mega-account-1 ⬅ current name
|
|
383
|
+
New name> mega-backup-1 ⬅ new name
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
Delete:
|
|
387
|
+
```
|
|
388
|
+
e/n/d/r/c/s/q> d ⬅ d = Delete
|
|
389
|
+
Choose a number from below ... ⬅ pick the remote
|
|
390
|
+
y) Yes this is OK
|
|
391
|
+
e) Edit this remote
|
|
392
|
+
y/e> y ⬅ y confirms permanent deletion
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
> Any rename/delete also must be mirrored in parrot-blackbox's pool:
|
|
396
|
+
> `parrot-blackbox remote list` shows what's registered, and
|
|
397
|
+
> `parrot-blackbox remote remove <name>` removes an entry from BOTH rclone and
|
|
398
|
+
> the pool in one go.
|
|
399
|
+
|
|
400
|
+
---
|
|
401
|
+
|
|
153
402
|
## Commands
|
|
154
403
|
|
|
155
404
|
| Command | What it does |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parrot-blackbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "parrot-blackbox — crash-proof, multi-cloud backup & recovery automation for Parrot OS. Daily/weekly off-disk backups with automatic catch-up, smart storage across many MEGA + Google Drive accounts, Timeshift snapshot backups and one-command restore.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/cli.js",
|