Jump to content


- - - - -

How to copy files


  • Please log in to reply
No replies to this topic

#1 wildweaselmi

wildweaselmi

    Administrator

  • Administrators
  • 1,024 posts

Posted 08 November 2011 - 12:22 PM

I was using cp -r /source/ /dest/ but I have migrated to using rsync for copying since it shows so much more information so you aren't just wondering what the heck is going on.

rsync -vaz --progress /source/ destination/

-v (turn on verbose mode)
-z (Turns on compression during the transfer. This option compresses the data as it is copied over the network.)
-a (This turns on archive mode. Bascially this causes rsync to recurse the directory copying all the files and directories and perserving things like case, permissions, and ownership on the target. (Note: Ownership may not be preserved if you are not logged in as the root user.)





Similar Topics Collapse

  Topic Forum Started By Stats Last Post Info

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users