Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chromebrew/crew-mvdir

A faster alternative compared with `rsync --remove-source-files`
https://github.com/chromebrew/crew-mvdir

Last synced: 3 days ago
JSON representation

A faster alternative compared with `rsync --remove-source-files`

Awesome Lists containing this project

README

        

# crew-mvdir

A command line tool for moving all files under one directory to another, override conflict files in the destination directory (merge two directories)

Equivalent of `rsync -ahHAXW --remove-source-files dir1/ dir2/`

`crew-mvdir` use `rename()` syscall to move files (instead of copying-deleting), that's why it is faster than `rsync`

## Usage
```
./crew-mvdir [-v] [-n] [src] [dst]

-v: enable verbose mode
-n: do not overwrite an existing file (no clobber)
```

## Compile
```shell
cc ./crew-mvdir.c -O2 -o crew-mvdir
```

## License
Copyright (C) 2013-2024 Chromebrew Authors

This project including all of its source files is released under the terms of [GNU General Public License (version 3 or later)](http://www.gnu.org/licenses/gpl.txt).