sverrejoh / rclonefile-cli

Clone files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rclonefile-cli

The macOS API for creating copy on write clones of files and folders

Description

This is a small wrapper around the clonefile(2) API on macOS for cloning files and folders.

Why?

  • Clones files and folders, without taking up disk space
  • Uses clonefile(2) introduced in macOS 10.12
  • Takes advantage of the APFS file system
  • All flags available.
  • Fast!

Install

    npm install --global rclonefile-cli

Usage

$ rclonefile --help

    Usage
    $ rclonefile <source> <destination>

    Options
    --no-follow, -f      Don't follow the src file if it is a symbolic link
    --no-owner-copy, -c  Don't copy ownership information from the source
    --clone-acl, -a      Copy ACLs from the source file.

    Examples
      $ rclonefile super-mario.png super-clone.png

Related

About

Clone files

License:MIT License


Languages

Language:JavaScript 100.0%