3.12.114 • Published 12 months ago

@erboladaiorg/tenetur-architecto-dolore v3.12.114

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@erboladaiorg/tenetur-architecto-dolore

Dropbox backup directory

A NodeJS tool to

  • zip a directory and create backup onto Dropbox,
  • list backups,
  • download a backup
  • or download and unzip a backup.

NPM

Command line usage

Setup

install @erboladaiorg/tenetur-architecto-dolore

npm install @erboladaiorg/tenetur-architecto-dolore@latest --global

set your preferences

A dropbox application (dropboxAppKey,dropboxAppSecret), and long-lived refresh-token (dropboxRefreshToken) are required.

NB: in order to understand how-to get a `refresh-token, cf dropbox-refresh-token

The old-long-lived access-token (dropboxToken) are always supported but this method is deprecated and will be removed in futur release.

@erboladaiorg/tenetur-architecto-dolore setup

(first time only) create a @erboladaiorg/tenetur-architecto-dolore config file ~/.@erboladaiorg/tenetur-architecto-dolore

To remove this setup

@erboladaiorg/tenetur-architecto-dolore unlink

NB: you could create other custom @erboladaiorg/tenetur-architecto-dolore config files, and choose custom @erboladaiorg/tenetur-architecto-dolore config file by using DBD_CONFIG_FILE env.

Show help

  • @erboladaiorg/tenetur-architecto-dolore

show actions

Create a backup

  • @erboladaiorg/tenetur-architecto-dolore backup <localDirectory> [<myBackup.zip>]

create a remote zip backup from local directory

Example: zip local directory ../tmp/backup/myDir then upload as dropbox backup /backup/biolo.zip

@erboladaiorg/tenetur-architecto-dolore backup ../tmp/backup/myDir biolo.zip

This action will success if the target dropbox already exists with the same zip file.

This action will fail if a different target dropbox already exists (use forceBackup to override it).

backup is the default dropbox backup target directory and may be changed using options.

Create or override a backup

  • @erboladaiorg/tenetur-architecto-dolore forceBackup <localDirectory> [<myBackup.zip>]

List backups

  • @erboladaiorg/tenetur-architecto-dolore list
  • DBD_CONFIG_FILE=./tmp/myDrobadiConfig @erboladaiorg/tenetur-architecto-dolore list

list remote backups

Download a backup

  • @erboladaiorg/tenetur-architecto-dolore download <myBackup.zip> [<localFile.zip>]

download a remote backup into local file

Example: download dropbox file /backup/biolo.zip as local file ./biolo.zip

@erboladaiorg/tenetur-architecto-dolore download biolo.zip

Example: download dropbox file /backup/biolo.zip as local file /tmp/ddd.zip

@erboladaiorg/tenetur-architecto-dolore download biolo.zip /tmp/ddd.zip

Download and unzip a backup

  • @erboladaiorg/tenetur-architecto-dolore downloadAndUnzip <myBackup.zip> [</local/path>]

download a remote backup and unzip it into local directory

Example: download dropbox file /backup/biolo.zip and unzip it into local directory ./biolo

@erboladaiorg/tenetur-architecto-dolore downloadAndUnzip biolo.zip ./biolo

DOptions

Drobadi options are

  • dropboxAppKey (or DBD_DROPBOX_APP_KEY env. Default: null. Required) : dropbox application key.
  • dropboxAppSecret (or DBD_DROPBOX_APP_SECRET env. Default: null. Required) : dropbox application secret.
  • dropboxRefreshToken (or DBD_DROPBOX_REFRESH_TOKEN. Default: null. env. Required) : dropbox application refresh-token.
  • path (or DBD_PATH env. Default: backup) : dropbox target directory that receive backup files.
  • overrideTargetBackup (or DBD_OVERRIDE_TARGET_BACKUP env. Default: false) : override target backup file.

Deprecated option:

  • dropboxToken (or DBD_DROPBOX_TOKEN env. Default: null. DEPRECATED) : dropbox access-token value,
  • dropboxTokenDisableWarning (or DBD_DROPBOX_TOKEN_DISABLE_WARNING env. Default: false.*) : change-it to disable warning log.

Note that @erboladaiorg/tenetur-architecto-dolore setup help you to create a ~/.@erboladaiorg/tenetur-architecto-dolore config file.

DOptions precedence: options object, or env value or config file or default value.

Library use

Install dependency

You have to import as dependency

npm install @erboladaiorg/tenetur-architecto-dolore

Define the requirements, example:

import {Drobadi, DOptions} from "@erboladaiorg/tenetur-architecto-dolore";

const dOptions = new DOptions({
    "dropboxToken": 'My dropbox token is a secret',
    "path": "from-@erboladaiorg/tenetur-architecto-dolore",
    "overrideTargetBackup": true
});
let @erboladaiorg/tenetur-architecto-dolore = new Drobadi();

create a remote backup from local directory

let promiseResult =  @erboladaiorg/tenetur-architecto-dolore.backup(dOptions, "./myData/", "dataBack.zip")

list remote backups

let promiseResult = @erboladaiorg/tenetur-architecto-dolore.list(dOptions);

Restore remote backup in current directory

let promiseResult = @erboladaiorg/tenetur-architecto-dolore.download(dOptions, "dataBack.zip")

Restore remote backup in a given local destination

var promiseResult = @erboladaiorg/tenetur-architecto-dolore.download(dOptions, "dataBack.zip", "/home/user/incomming/restored.zip")

Restore remote backup and unzip it in a given local directory

var promiseResult = @erboladaiorg/tenetur-architecto-dolore.downloadAndUnzip(dOptions, "dataBack.zip", "/tmp/restoreHere")

NB: you could also have a look at tests : @erboladaiorg/tenetur-architecto-dolore.test.js

How to contribute

cf contributing guide

Services or activated bots

badgenamedescription
CI/CDGithub actionsContinuous tests.
AuditGithub actionsContinuous vulnerability audit.
Reviewed by HoundHoundciJavaScript automated review (configured by .hound.yml)
duplexreact-hooksredirectcallboundreusees-shim APIcheckmobileparenta11yArrayBufferexecweakmapES3concatMapargvbyteLengthes2016regular expressionparsercss-in-jsurlURLSearchParamsestreetrimRightvariablesavadatastructuremodulees2018Object.assignsyntaxtoSortedfastcopyinvariantES2016argparseObject.getPrototypeOfspeedmergeYAMLarktypeworkflowcollectionttyjsrapidtaskawaitenvRegExp#flagsdataViewURLES2019Object.entriesgetrateassertsdescriptionredactmatchsuperagentES2023prefixstructuredClonebuffervalidESnextcore-jsprivate datathrottlesetReflect.getPrototypeOfsettingshttps256cloudfrontlookECMAScript 6flagArray.prototype.findLastgradients cssString.prototype.trimlibphonenumbercss nestingloggertoolkitgetOwnPropertyDescriptorvalidationhooksxtermObservablesloteast-asian-widthminimalefficientflagss3telephonecloudformationjsdifftoArrayeslintconfigbytecomparewatchFilecharactersguidString.prototype.matchAllfast-deep-clonestylesvpcfullfastifysimpledbES2018vestprotofull-widthperformancebootstrap cssclassesmakecode pointsUint8ClampedArraydotenvartarraybufferdebugshamCSSfilter0lockfilelimitedcompile lessrfc4122watchingtypeerrorsortSymbolkeyinnegativeindicatorimmeres5columnsgradients css3safelimitfpsidlewalkcss lessdeleteremoveprivatedefinePropertyprotobufArray.prototype.flattenWebSocketstrimBigUint64ArrayInt8Arrayagentfind-uptypedarraysregexpECMAScript 2020Int16ArraypushgenericsdeterministicspinnershardlinksObservablescolorsMicrosoftconfigurableinspectinstallstyled-componentseslint-pluginobjectclassnamesxhrmatchesbluebirdsuperstructconnectwalkingES7hasOwnstartersomefunctionsbrowserpromisesassertruntimeUint8ArrayfilefindregextddStyleSheetupReactiveXresolvepersistentdescriptorpackage managerfastjsonsymbolHyBidropsymlinksES2015emitrm -frebsSetwatchsetterAsyncIteratores6nodeinferenceawsexpressECMAScript 2016WeakSetprotocol-buffersbindtouchtakeECMAScript 2019Array.prototype.includeschineseviewjsonpathvalueES5l10ncirculararrayECMAScript 3routingdeepcopycolourreducereactaccessibilityPromiseomitmulti-packageinternalargseslintplugincommanderbannerpositivepnpm9enderrecursiveObjectlocationmkdirpbcryptECMAScript 2022listenerstypesafeES6rmtextfastclonebddreadableextensionloadingES2021idpackage.jsonshellfast-copyspinnerasyncencryptiongraphqlemojiroute53progressmoveeswordbreaklesscssgetoptclassnameArray.prototype.containsbundlerWebSocketrdsArrayautoscalinglazymiddlewareObject.valuesquerynested cssvisualstdlibgroupByfolderdirectoryclonewafregular expressionsdeep-clonei18nmapreducezodreadablestreamgetterArray.prototype.filterpropertiesglobcss variabledependenciesyupwgetcreateenvironmentkeysES2017ansihookformwidthprettymatchAllutilitiesdeepcommand-lineWeakMapcompilerparseUint32ArrayhotelasticacheargumentTypedArraycallbackintrinsicuninstallcoercibletrimLeftArrayBuffer.prototype.sliceweaksetawesomesaucetestingformpackagesclientsameValueZeronumberECMAScript 2015setPrototypeOfjavascriptvalidatetimecurlhas-ownfixed-widthreplaybatchspechaselectronpostcss-pluginuuidcall-bindenumerablestatelesscharactertapPushstateSymbol.toStringTaglinewrapstringifyunicodesymbolsjwtFloat64Arrayajvsidebrowserlistelbpicomatchobjgdprcommandkarmamapmake dirdebuggerpropertymoduleskinesismkdirObject.fromEntriesbootstrap lessapollohasheventEmitteriamconfig__proto__typedvaluesTypeScriptliveautoprefixercallbindwordwrapinternal slotreact-hook-formphonepatchpredictablecopyglaciercolornegative zerooptimistrangeerrorpruneeslintStreamwritableES8metadataslicechannelproppostcsspasswordUint16Arrayserializesearchprototypetypesdatetypeinputproxyfile systemonceCSSStyleDeclarationfindupserializationescapeStreamsexpressiondeepcloneoffseteventDispatcherqsUnderscorestylewritequeuetesterstablestringcollection.es6getPrototypeOfmkdirsasciiES2020assignsymlinkconsolelook-upsharedopencjkbufferses-abstractform-validationdescriptorsbundlingcloudsearchextra
@erboladaiorg/adipisci-repellendus-corporis@erboladaiorg/adipisci-aspernatur-explicabo@erboladaiorg/alias-iure@erboladaiorg/blanditiis-facere@erboladaiorg/consectetur-incidunt-a@erboladaiorg/cupiditate-ab@erboladaiorg/eligendi-reiciendis-id@erboladaiorg/molestias-omnis-commodi@erboladaiorg/molestias-repellat@erboladaiorg/quibusdam-autem@erboladaiorg/qui-nostrum-quo@erboladaiorg/quibusdam-ipsa@erboladaiorg/quia-maiores@erboladaiorg/reiciendis-inventore@erboladaiorg/vel-culpa@erboladaiorg/vero-fuga@erboladaiorg/ut-excepturi-dolore@erboladaiorg/velit-corporis-maiores@erboladaiorg/velit-adipisci-dicta@erboladaiorg/animi-dignissimos@erboladaiorg/aliquid-quis-voluptates@erboladaiorg/aliquid-rerum-nam@erboladaiorg/id-qui@erboladaiorg/illum-illum@erboladaiorg/impedit-ipsum-natus@erboladaiorg/illo-dolor-ipsam@erboladaiorg/impedit-ratione-quasi@erboladaiorg/laboriosam-inventore-natus@erboladaiorg/natus-harum-voluptatum@erboladaiorg/natus-illo-iste@erboladaiorg/necessitatibus-pariatur-sint@erboladaiorg/odio-libero-mollitia@erboladaiorg/odio-repellendus-doloremque@erboladaiorg/sed-eligendi-accusantium@erboladaiorg/sapiente-molestiae@erboladaiorg/tenetur-magnam@erboladaiorg/tenetur-magni-ab@erboladaiorg/consequuntur-assumenda@erboladaiorg/dolorum-velit@erboladaiorg/et-placeat@erboladaiorg/et-minus@erboladaiorg/iusto-sit-quasi@erboladaiorg/molestiae-voluptatibus@erboladaiorg/nesciunt-quas-saepe@erboladaiorg/possimus-praesentium-sint@erboladaiorg/quidem-molestiae@erboladaiorg/rem-quisquam-quasi@erboladaiorg/tempora-nisi@erboladaiorg/tempora-quas@erboladaiorg/vitae-aut@erboladaiorg/voluptate-alias-voluptate@erboladaiorg/aliquid-quasi@erboladaiorg/aliquid-impedit@erboladaiorg/corporis-error@erboladaiorg/cum-commodi-consequatur@erboladaiorg/cumque-possimus-delectus@erboladaiorg/doloribus-quos-officia@erboladaiorg/error-expedita-alias@erboladaiorg/esse-esse@erboladaiorg/perspiciatis-error-reprehenderit@erboladaiorg/officiis-maiores@erboladaiorg/placeat-natus@erboladaiorg/quaerat-excepturi@erboladaiorg/quod-id@erboladaiorg/tempore-illo@erboladaiorg/temporibus-eligendi@erboladaiorg/voluptatem-eius@erboladaiorg/voluptates-nisi-quibusdam@erboladaiorg/voluptatibus-beatae@erboladaiorg/dignissimos-ducimus-perferendis@erboladaiorg/deserunt-eos-eum@erboladaiorg/deserunt-nobis@erboladaiorg/expedita-accusantium-nisi@erboladaiorg/in-accusamus-architecto@erboladaiorg/incidunt-dicta-magnam@erboladaiorg/nisi-id-consequatur@erboladaiorg/unde-sit@erboladaiorg/ut-dignissimos-laborum@erboladaiorg/distinctio-illum-harum@erboladaiorg/distinctio-provident-voluptatem@erboladaiorg/dolor-pariatur-modi@erboladaiorg/eaque-eaque-saepe@erboladaiorg/ducimus-necessitatibus-omnis@erboladaiorg/ea-saepe@erboladaiorg/itaque-incidunt-quis@erboladaiorg/libero-a@erboladaiorg/libero-possimus@erboladaiorg/magnam-cumque-non@erboladaiorg/porro-laboriosam@erboladaiorg/quas-officiis@erboladaiorg/quam-id-itaque@erboladaiorg/quod-nesciunt-cum@erboladaiorg/totam-mollitia-tenetur@erboladaiorg/assumenda-cupiditate@erboladaiorg/facere-maxime@erboladaiorg/fugiat-deleniti-repudiandae@erboladaiorg/itaque-quo@erboladaiorg/nesciunt-illum-sunt@erboladaiorg/nesciunt-molestiae-quibusdam@erboladaiorg/non-repellat
2.9.86

1 year ago

1.6.42

1 year ago

1.6.43

1 year ago

1.8.69

1 year ago

2.9.87

1 year ago

2.9.88

1 year ago

2.11.93

1 year ago

1.8.70

1 year ago

2.11.94

1 year ago

1.8.71

1 year ago

2.11.95

1 year ago

1.8.72

1 year ago

1.8.73

1 year ago

1.4.32

1 year ago

3.12.98

1 year ago

3.12.97

1 year ago

2.10.90

1 year ago

3.12.99

1 year ago

2.10.91

1 year ago

2.10.92

1 year ago

2.10.93

1 year ago

1.3.31

1 year ago

1.3.32

1 year ago

3.12.96

1 year ago

1.3.30

1 year ago

3.12.111

12 months ago

3.12.110

12 months ago

1.7.50

1 year ago

3.12.102

1 year ago

1.7.51

1 year ago

3.12.101

1 year ago

1.7.52

1 year ago

3.12.104

1 year ago

1.7.53

1 year ago

3.12.103

1 year ago

1.7.54

1 year ago

3.12.106

1 year ago

1.7.55

1 year ago

1.5.32

1 year ago

3.12.105

1 year ago

1.7.56

1 year ago

3.12.108

12 months ago

1.7.57

1 year ago

1.5.34

1 year ago

3.12.107

1 year ago

1.7.58

1 year ago

1.5.33

1 year ago

1.7.59

1 year ago

1.5.36

1 year ago

1.3.13

1 year ago

3.12.109

12 months ago

1.5.35

1 year ago

1.3.14

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.3.17

1 year ago

1.5.39

1 year ago

1.3.18

1 year ago

1.3.15

1 year ago

1.3.16

1 year ago

1.3.19

1 year ago

1.7.60

1 year ago

1.7.61

1 year ago

3.12.113

12 months ago

1.7.62

1 year ago

3.12.112

12 months ago

1.7.63

1 year ago

1.7.64

1 year ago

1.5.41

1 year ago

3.12.114

12 months ago

2.10.88

1 year ago

1.7.65

1 year ago

1.5.40

1 year ago

2.10.89

1 year ago

1.7.66

1 year ago

1.3.20

1 year ago

1.7.67

1 year ago

1.5.42

1 year ago

1.3.21

1 year ago

1.7.68

1 year ago

1.7.69

1 year ago

1.3.24

1 year ago

1.3.25

1 year ago

1.3.22

1 year ago

1.3.23

1 year ago

1.3.28

1 year ago

1.3.29

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.9.86

1 year ago

1.9.85

1 year ago

1.9.84

1 year ago

1.9.83

1 year ago

1.9.82

1 year ago

1.9.81

1 year ago

1.9.80

1 year ago

3.11.96

1 year ago

1.9.79

1 year ago

1.9.78

1 year ago

1.9.77

1 year ago

3.12.100

1 year ago

1.9.76

1 year ago

1.9.75

1 year ago

1.9.74

1 year ago

1.9.73

1 year ago

1.7.43

1 year ago

1.7.44

1 year ago

1.7.45

1 year ago

3.11.95

1 year ago

1.7.46

1 year ago

1.7.47

1 year ago

1.7.48

1 year ago

1.7.49

1 year ago

1.3.12

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.11

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago