Performs the following actions:
- Reads files from a google drive source,
- then uploads them to a webdav destination,
- them trashes them in the google drive source (they will be deleted by google after 30 days)
- This requires a Google API token (thus a Google account too), that you can create by https://developers.google.com/drive/api/v3/quickstart/nodejs and following the tutorial on step 1 there.
- This requires a
config.json
file; look at theconfig.json.example
file to get inspiration.
- install dependencies with:
npm install
- copy
config.json.example
toconfig.json
, and modify it as indicated:gdrive_from_folder
: from which gdrive folder should we read files?webdav_url
: base WebDAV URLwebdav_root_path
: WebDAV path where files will be copiedwebdav_username
/webdav_password
: WebDAV user name and password :-)
- run with
node index