Code Monkey home page Code Monkey logo

perm-sync's Introduction

perm-sync

< Work in progress >

Save and restore linux user permissions.

  • Control, detect and recover from unintended user permissions changes
  • Restore user permissions when recovering backup files from sources not supporting them.

Additionally, support backup of local files into external storages

  • Define files to backup
  • Generate commands for different tools and targets (rsync, cloud, NAS)

Motivation

Existing tools like getfacl and setfacl were not fitting for my current needs.

WIP

  • TODO: Scan filesystem and gather all possible information (see getfacl)
  • TODO: investigate if supporting mac is also possible
  • TODO: Create permissions backup file using a configuration
  • TODO: Verify permissions backup against local filesystem
    • TODO: Detect and report file deletions in FS
    • TODO: Detect and report file modifications in FS
    • TODO: Detect and report new entries for backup
  • TODO: restore create permissions backup into local file system
  • TODO: enable user to define root folder to backup
  • TODO: whitelist files and folders inside root folder
  • TODO: blacklist files and folders inside root folder
  • TODO: define targets for backups (Method/type and URI/URL)
  • TODO: Create/Run backup commands for different backup targets
    • TODO: rsync to target with linux permissions support
    • TODO: rsync to target without linux permissions support
    • TODO: to AWS Simple Storage Service (S3)
    • TODO: to DigitalOcean Spaces Object Storage
    • TODO: to Azure Blob storage
    • TODO: to CGP Google Storage
  • TODO: Consider implementing a backup restore procedure

Features

  • Separate configuration files for different folders
  • Whitelist folders and files for processing
  • exclude specific files and folders
  • Define a default user
  • Define default permissions for regular files folders
  • Only documents deviating values from the defaults

perm-sync's People

Contributors

malcos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.