Rsync is available by default on Apple OS and can be used to validate the transfer of files from a Mac workstation. Use rsync's advanced alternative for the cp
command and especially when copying larger number of files.
Command:
$ rsync -P -v -r source/ destination
Options:
- source/ : Must include ending slash to select all files within the source directory to be moved.
- The
-P
option is the same as --partial --progress
, which keeps partially transferred files and shows a progress bar during transfer. ‘–progress’ option displays the files and the time remaining to complete the transfer.
- -v : verbose. Will provide more information such as on what files are being skipped.
- -r : copies data recursively, ie subfolders, but does NOT preserve timestamps and permission while transferring data. NB: When left out, even if there are no subfolders to recurse, nothing happens and will get a "skipping directory" error message.
- -a : archive mode, allows copying files recursively and retains timestamps but it also preserves symbolic links, file permissions, user & group ownerships. NB: this may be problematic when transferring between folders with different users groups/permission. Recommended to only use when logged in as Admin.
- -h : human-readable, output numbers in a human-readable format
Example:
Comments (1)
Monica said
at 3:07 pm on Mar 31, 2017
http://tinyurl.com/kgoqb2c
You don't have permission to comment on this page.