BACKUPiFY
A simple node module to facilitate automated google drive uploads
SETUP INSTRUCTIONS
Copy the .env.template
file into a .env
file and fill in the following
VARIABLE NAME | DESCRIPTION | REQUIRED |
---|---|---|
AUTH_FOLDER | The absolute path of the folder that should contain a file named credentials.json containing the Google API client secret configuration downloaded from the developer console. __THIS IS WHERE THE ACCESS TOKEN RECEIVED FROM GOOGLE WILL BE STORED SO ENSURE YOU SECURE IT AND ADD IT TO THE RELEVANT IGNORE FILES ___
|
yes |
TRIGGER_FOLDER | The absolute path of the folder that this script/module will monitor for changes | yes |
ALLOWED_TYPES | This takes a regex expression of the file types that should be uploaded from the TRIGGER_FOLDER for instance \.(gz|tar|iso|zip|rar|tgz|bz2|7z\)\$
|
yes |
GDRIVE_EXPORT_PATH | The google drive folder to upload a file in | no |