Skip to content

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

License

Notifications You must be signed in to change notification settings

chromebrew/crew-mvdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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).