Archive media files from a directory to a destination following YYYY/MM/DD saving pattern
$> npm install -g media-archiver
-
--src | -s
: The source directory -
--dest | -d
: The destination directory -
--mode | -m
: The mode:copy
,move
ordate
. Date is for fixingatime
andmtime
of destination file -
--dryRun | -r
: Dry run. Do the lookup part with console outputs without applying any change
$> media-archiver -s ~/some/dir -d ~/another/dir -m copy -r
media:
video:
dir: Videos
ext:
- mp4
- mov
photo:
dir: Photos
ext:
- jpg
- jpeg
- png
mode: copy
dryRun: false
Remark: mode
and dryRun
are overrided by the command line options