# Rsync
![[Synced Write-up#^9ev0gg]]
![[Synced Write-up#^57f1u8]]
![[Synced Write-up#^8joa2e]]
![[Synced Write-up#^u8wyas]]
The general syntax of `rsync` is as follows (two colons should be used if we're connecting to an rsync daemon):
```sh
rsync [OPTION] … [USER@]HOST::SRC [DEST]
```
After running this command the source will be copied to the destination. If instead of you want to list file only, use `--list-only` and omit the destination.
## Standard Options
- `-r` recursive
- `-v` verbose
- `-a` will ensure all file attributes are synced over as well a.k.a. archive mode
- `-u` skip newer files
- `--mkpath` will create missing paths.
- `-P` will print progress information.
## Filtering
`--exclude` and `--include` (and their `-file` varieties) control file glob filtering e.g.
```sh
--exclude='*!qB'
```
## Hack The Box Machines
- [[Synced Write-up|Synced]]