npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

furacao

v1.0.5

Published

A lighweight filesystem backup manager written in node.js which is focused on but not limited to cloud-based storage containers.

Downloads

10

Readme

Furacao

For the people who like to store backups remotely to keep servers lean and compartmental™. For those who like to store on the same server - it can do that too.

Alt demo

Installation

npm install -g furacao

Options

  • --config (-c): Required. The configuration file. Can be relative or absolute.
  • --onetime: This will ignore the frequency property in the configuration file and the script will exit upon backing up. Suitable for using with a third-party program like cron to manage the schedule.

The end result will be an organized directory structure:

<backup-name>
|  <backup-name>-<year>-<month>-<day>--<hour>-<minute>-<second>-<period>.tar.gz
|  <backup-name>-<year>-<month>-<day>--<hour>-<minute>-<second>-<period>.tar.gz
|  <backup-name>-<year>-<month>-<day>--<hour>-<minute>-<second>-<period>.tar.gz
|  ...
<backup-name>
|  ...

Setup

It's a two step process.

Step 1: Create a configuration file.

{
  "frequency": 3600000,
  "provider": {
    "... SEE BELOW FOR PROVIDER INFO ..."
  },
  "backups": [
    {
      "name": "name-of-project",
      "dir": "path/to/dir",
      "glob": ["**/*", "!**/node_modules/**"]
    },
    {
      "name": "name-of-another",
      "dir": "path/to/dir/again",
      "glob": ["**/*", "!**/bower_components/**", "!**/.git/**"]
    }
  ]
}
Providers
Filesystem
"provider": {
  "name": "filesystem",
  "destination": "<folder-name>"
}
Amazon S3 Storage
"provider": {
  "name": "s3",
  "container": "<container-name>",
  "secretkey": "<secret-key>",
  "accesskey": "<access-key-id>",
  "region": "<region>"
}
Rackspace Cloud Files
"provider": {
  "name": "rackspace",
  "container": "<container-name>",
  "apikey": "<api-key>",
  "username": "<username>",
  "region": "<region>"
}

Step 2: Run furacao

Start furacao.

# Run in the foreground.
furacao -c path/to/config.json

# You can also make it exit after calling using the --onetime flag. This will
# ignore the frequency property in the configuration file.
furacao -c path/to/config.json --onetime

# Here is an example of how a cronjob could look if you want to let cron back your
# files up every day at midnight.
00 00 * * * furacao -c /home/dev/furacao.json --onetime

Basically, you'll want to run this as a daemon on the OS so it's always in the background and started on boot. If you want to keep it all node.js, you could also use forever.js.

It's important to note that you don't need to re-run furacao after you make a change to the configuration file. It will read changes on the fly.