IT/Software/Command Line Applications/rsync

From msgwiki
Revision as of 12:27, 27 February 2020 by Walttheboss (talk | contribs) (Added the page and details)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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