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 🙏

© 2025 – Pkg Stats / Ryan Hefner

b-unix

v0.1.4

Published

File backup service under Linux. It's a service which allows to do automatically backup files between servers. However, there is also a recovery system feature.

Readme

File backup service under Linux. It's a service which allows to do automatically backup files between servers. However, there is also a recovery system feature.

Getting started

The first step, don't forget to activate ssh connection between servers. For checked, try this command line on a linux console:

sshpass -p "password" ssh user@host  

then accept typing yes.

It's very important that this command works because b-unix works this way. If you have a problem with sshpass, install it on Linux with the command line :

apt-get install sshpass

Install b-unix :

npm install b-unix

And :

var bunix = require("b-unix");

You must include a file json like setup.json for all servers parameters. See 'setup.json file configuration' section for the configuration. After configuring the file, you can start the automatic backup on your application including in your code:

bunix.start("./setup.json");

and that's all.

When it starts for the first time, the 'b-unix_recovery.js' file is creates in the current directory You can recovers a backup file executing directly the command line in directory.

nodejs b-unix_recovery.js

It use the file configuration for recovers the backup files.

setup.json file configuration

{
    "number_backups":"backups number in the time",
    "hour":"hours delay",
    "minute":"minute delay",
    "second":"second delay",
    "config":[
        {
            "name":"backup name",
            "user_dest":"user of remote server",
            "pwd_dest":"user password of remote server",
            "host":"the remote server",
            "path_src":"absolute local path of the backup file without name file",
            "path_copy":"absolute local path of the local copy backup without the name file.",
            "path_dest":"absolute remote path of the backup file without name file",
            "filename":"the backup file name",
            "extension":"file extension"
        }
    ]
}

Example:

{
    "number_backups":10,
    "hour":24,
    "minute":0,
    "second":0,
    "config":[
        {
            "name":"test",
            "user_dest":"root",
            "pwd_dest":"123456",
            "host":"192.168.219.133",
            "path_src":"./",
            "path_copy":"./bck/",
            "path_dest":"../home/mint2/Desktop/BackupMint1/bck/",
            "filename":"newFile",
            "extension":".txt"
        },
        {
            "name":"test2",
            "user_dest":"root",
            "pwd_dest":"123456",
            "host":"192.168.219.133",
            "path_src":"./",
            "path_copy":"./bck2/",
            "path_dest":"../home/mint2/Desktop/BackupMint1/bck/",
            "filename":"newFile2",
            "extension":".txt"
        }
    ]
}