2015-12-31 00:50:05 +00:00
|
|
|
|
# ditto
|
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
|
> Copy files and folders.
|
2015-12-31 00:50:05 +00:00
|
|
|
|
|
2016-01-16 14:12:05 +00:00
|
|
|
|
- Overwrite contents of destination folder with contents of source folder:
|
2015-12-31 00:50:05 +00:00
|
|
|
|
|
|
|
|
|
`ditto {{path/to/source}} {{path/to/destination}}`
|
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
|
- Print a line to the Terminal window for every file that’s being copied:
|
2015-12-31 00:50:05 +00:00
|
|
|
|
|
|
|
|
|
`ditto -V {{path/to/source}} {{path/to/destination}}`
|
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
|
- Copy a given file or folder, while retaining the original file permissions:
|
2015-12-31 00:50:05 +00:00
|
|
|
|
|
|
|
|
|
`ditto -rsrc {{path/to/source}} {{path/to/destination}}`
|