Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backup-rotation

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backup-rotation

This script allows you to create a local or remote backup rotation for your files.

  • 1.0.109
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
96
increased by357.14%
Maintainers
1
Weekly downloads
 
Created
Source

Project status

npm npm downloads

documentation website

Use case

This module provides backup rotation logic for arbitrary files.

Features

  • Daily, weekly and monthly backups as cronjob
  • Local and remote backups supported
  • Compressed backups (tar and gz is used).
  • Backup file structure is completely adaptable.
  • Configure an email address to get notified if your backup source isn't available.
  • Works incrementally (can complete interrupted backups after reboot e.g., uses rsync)
  • Completely configurable how long you plan to preserve your backup files
  • Optionally use your own synchronisation, compression and/or cleanup tool

Usage

Run this script daily to generate your configured backup file structure.

./backupRotation.sh

or after installation:

backup-rotation

Installation with yay from the arch user repository

yay --sync backupRotation

Manual installation on any posix compatible operating system

Copy the script file "backupRotation.sh" to "/usr/bin/backup-rotation" and the provided timer and service files ("backupRotation.service" and "backupRotation.timer") to "/etc/systemd/system/backup-rotation.service" and "/etc/systemd/system/backup-rotation.timer" and enable services:

Enable service under systemd

systemctl enable backup-rotation.timer

to enable the backup logic. After running:

systemctl start backup-rotation.timer

you can see the worker running in your system logs and observe generated backup files.

Configuration

Simply create a text file under "/etc/backupRotation" and insert bash code which sets all options you want to overwrite.

Keywords

FAQs

Package last updated on 23 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc