backups:synchronize_files_in_a_directory_between_2_hosts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
backups:synchronize_files_in_a_directory_between_2_hosts [2016/07/10 18:59] – peter | backups:synchronize_files_in_a_directory_between_2_hosts [2019/11/26 20:43] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Backups - Synchronize files in a directory between 2 hosts ====== | ||
- | |||
- | Synchronize files in a directory between 2 hosts using the program rsync. | ||
- | |||
- | <code bash> | ||
- | rsync -av --delete --rsh=" | ||
- | </ | ||
- | |||
- | * -a: The files are transferred in " | ||
- | * -v: Increase verbosity. | ||
- | * --delete: | ||
- | * This uses ssh as the remote-shell program as the transport. | ||
- | * -c arcfour: | ||
- | * -l root: Specifies the user to log in as on the remote machine. | ||
- | * The source is always named first | ||
- | * host1' | ||
- | * The destination is always named second. | ||
- | * /disk01 (destination) is a local directory. | ||
- | * Trailing / on the source means copy the contents of this directory to the destination. | ||
- | |||
backups/synchronize_files_in_a_directory_between_2_hosts.1468177150.txt.gz · Last modified: 2020/07/15 09:30 (external edit)