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

yemot-recordings-backup

v1.0.1

Published

Automatic backup tool for Yemot HaMashiach call recordings to Amazon S3

Readme

Yemot Recordings Backup

Automatic backup tool for Yemot HaMashiach call recordings to Amazon S3.

Features

  • Scheduled daily backups of Yemot HaMashiach recordings at midnight
  • Support for multiple Yemot systems
  • Automated filtering for recordings from the previous day
  • Maintains original directory structure in S3
  • Command-line interface for manual backup operations
  • Docker support for containerized deployment

Requirements

  • Node.js 14 or later
  • AWS S3 bucket
  • Yemot HaMashiach system credentials

Installation

# Install globally to use the CLI
npm install -g yemot-recordings-backup

# Or install locally in your project
npm install yemot-recordings-backup

CLI Usage

Once installed globally, you can use the yemot-backup command:

# Show help
yemot-backup --help

# Run backup immediately
yemot-backup run

# Run backup from a specific path
yemot-backup run --yemot-path "/path/to/backup"

# Schedule daily backups
yemot-backup schedule

# Test connection to all systems
yemot-backup test-connection

# System Management Commands
# List all systems
yemot-backup systems:list

# Add a new system
yemot-backup systems:add -i system-id -u username -p password

# Update a system
yemot-backup systems:update -i system-id -u new-username -p new-password -e true

# Remove a system
yemot-backup systems:remove -i system-id

# Show system details
yemot-backup systems:show -i system-id

# AWS Configuration Commands
# Configure AWS credentials
yemot-backup aws:configure -k ACCESS_KEY -s SECRET_KEY -r region -b bucket-name

# Show AWS configuration
yemot-backup aws:status

Library Usage

You can also use this package as a library in your Node.js projects:

const yemotBackup = require('yemot-recordings-backup');

// Run backup for all enabled systems
async function backup() {
  try {
    await yemotBackup.runBackup();
    console.log('Backup completed successfully');
  } catch (error) {
    console.error('Backup failed:', error);
  }
}

// Run backup for a specific system
async function backupSystem() {
  try {
    await yemotBackup.runSystemBackup('system-1', '/specific/path');
    console.log('System backup completed successfully');
  } catch (error) {
    console.error('System backup failed:', error);
  }
}

// Create a custom backup service
const customBackup = () => {
  const system = { 
    id: 'custom-system',
    username: 'username',
    password: 'password'
  };
  
  const backupService = new yemotBackup.BackupService(system);
  return backupService.runBackup('/custom/path');
};

// System management
function manageYemotSystems() {
  // Get all systems
  const systems = yemotBackup.getSystems();
  console.log('All systems:', systems);
  
  // Add a new system
  yemotBackup.addSystem({
    id: 'new-system',
    username: '0733512777',
    password: 'secret-password',
    enabled: true
  });
  
  // Update a system
  yemotBackup.updateSystem('system-1', { 
    username: 'new-username',
    enabled: false
  });
  
  // Get a specific system
  const system = yemotBackup.getSystem('system-1');
  console.log('System details:', system);
  
  // Remove a system
  yemotBackup.removeSystem('old-system');
}

// AWS configuration
function configureAwsSettings() {
  yemotBackup.configureAws({
    accessKeyId: 'YOUR_ACCESS_KEY',
    secretAccessKey: 'YOUR_SECRET_KEY',
    region: 'us-east-1',
    bucket: 'your-bucket-name'
  });
}

Configuration

The package reads configuration from environment variables and a systems.json file:

  1. Create a .env file with AWS credentials:
AWS_ACCESS_KEY_ID=your_key_id
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_REGION=us-east-1
AWS_S3_BUCKET=your-bucket-name
  1. Create a systems.json file in the src directory:
[
  {
    "id": "system-1",
    "username": "your_yemot_username",
    "password": "your_yemot_password",
    "enabled": true
  }
]

S3 Paths

Files are stored in S3 with the following path structure: system-id/yemot-path/date/filename

License

MIT