Giter VIP home page Giter VIP logo

coko's Introduction

Copy Over Keeping Ownership (coko)

Tool to overwrite directories using files from a different owners but keeping original owners and permissions.


THIS IS AN ABSOLUTELY USELESS TOOL We were mistaken about native cp behaviour. So in the end this tool was not used. I keep this repo here to use it as a reference, because I've tried some new things I want to apply to my other projects.


Sometimes you have a directory full of files you want to overwrite periodically.

You may not want to edit those files directly but let other users edit their own copy of those files to sync them over original ones afterwards.

Problem there is that local copies may have changed their owners or permissions after being edited by user so those metadata are carried over original directory overwriting them.

This tools let you take an snapshot of your files metadata in a particular directory in order to copy files over that directory and restoring those metadata after the copy process.

An use case

One use case we're using coko for is to let or development team to fine tune configuration files of development containers. They have their own copy of configuration files and we let them upload to a transient folder inside container. Then a cron job copy files from that transient folder into application folder using coko. If we weren't using coko, application folder would end having files with the users, our developers have to upload changes, as owners.

Theorically docker has a flag (-a) that lets you get more or less the same effect but we haven't got it work and we feel it can be a docker bug. So, while that bug is fixed, we use coko.

coko's People

Contributors

dante-signal31 avatar

Watchers

James Cloos avatar  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.