IT/Software/Command Line Applications/rsync: Difference between revisions

From msgwiki
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary
mNo edit summary
 
Line 8: Line 8:
For more info type  
For more info type  
<code>man rsync</code>
<code>man rsync</code>
in the console
in the konsole


====Details====
====Details====

Latest revision as of 10:07, 22 September 2020

General

Options

These are things you can add to rsync to make it do different things for you.

We will not attempt to explain all of them. Only the ones that we use and find useful.

For more info type man rsync in the konsole

Details

  • -v verbose: will give you some information
  • --progress will show you the progress of each file
  • --info=progress2 will show you the progress of the whole job. Much more useful.

Transfer method

  • -e will let you specify the transfer protocol
    • You need to follow with the protocol you want
    • We often use -e ssh to use the secure shell protocol

Exclude

  • --exclude= will let you skip some files
    • There are many ways to do this and you can read up on them
    • We often --exclude=*.iso for example to skip all the iso files
    • Unless you put the files or details in a list text file you will need an exclude statement for each file type