Coder Social home page Coder Social logo

cpdup's Introduction

CPDUP -- Filesystem Mirroring Utility

Introduction

The cpdup utility makes an exact mirror copy of the source in the destination, creating and deleting files and directories as necessary. UTimes, hardlinks, softlinks, devices, permissions, and flags are mirrored. By default, cpdup asks for confirmation if any file or directory needs to be removed from the destination and does not copy files which it believes to have already been synchronized (by observing that the source and destination files' sizes and mtimes match). cpdup does not cross mount points in either the source or the destination. As a safety measure, cpdup refuses to replace a destination directory with a file.

The cpdup utility was originally created to update servers at BEST Internet circa 1997 and was placed under the FreeBSD copyright for inclusion in the Ports Collection in 1999. This utility was written by Matthew Dillon, Dima Ruban, and later significantly improved by Oliver Fromme.

Upstream source: DragonFly BSD's bin/cpdup

Manual page: cpdup(1)

Platforms

  • DragonFly BSD
  • FreeBSD
  • NetBSD
  • Linux (tested on Arch Linux and CentOS)

(Welcome to help test on and port to more platforms)

Installation

  1. Install dependencies:

    • make (GNU make)
    • gcc
    • pkg-config
    • libbsd-dev (Required only on Linux)
    • libssl-dev (OpenSSL/LibreSSL)

    Arch Linux: pacman -S pkgconf libbsd openssl

    CentOS: yum install pkgconfig libbsd-devel openssl-devel

    Debian: apt install pkg-config libbsd-dev libssl-dev

    DragonFly BSD / FreeBSD: pkg install gmake pkgconf libressl

  2. Build: make

  3. Install: sudo make install [PREFIX=/usr/local]

Packages

Arch Linux:

$ make archpkg
$ sudo pacman -U cpdup-*.pkg.*

CentOS:

$ make rpm
$ sudo rpm -ivh cpdup-*.rpm

License

The 3-Clause BSD License

cpdup's People

Contributors

krytarowski avatar liweitianux avatar mmatuska avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kastningbrandon

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.