One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // Restify Server CheatSheet. | |
| // More about the API: http://mcavage.me/node-restify/#server-api | |
| // Install restify with npm install restify | |
| // 1.1. Creating a Server. | |
| // http://mcavage.me/node-restify/#Creating-a-Server | |
| var restify = require('restify'); |
| const AWS = require("aws-sdk"); // from AWS SDK | |
| const fs = require("fs"); // from node.js | |
| const path = require("path"); // from node.js | |
| // configuration | |
| const config = { | |
| s3BucketName: 'your.s3.bucket.name', | |
| folderPath: '../dist' // path relative script's location | |
| }; |
| #!/bin/bash | |
| # Script to backup git repo to Backblaze B2 | |
| # Set bucket, dir, password and account to use for the backup. I keep mine in local env vars | |
| # These are set by localrc which lives on an encrypted home directory and is executed by my bashrc | |
| # Ensure you have authorized the B2 command line tool with the correct account AND added your SSH | |
| # public key to your github account, if you need to backup private repositories. | |
| # To restore this repo in the future, download it from B2, extract it and then use this command: | |
| # cd old-repository.git |