IT/Software/Command Line Applications/rsync

From msgwiki
Revision as of 10:07, 22 September 2020 by Sam652 (talk | contribs)
Jump to navigation Jump to search

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 console

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