Blame

6c5929 theophile 2025-10-13 13:47:10 1
# Syncing Content
2
3
```bash
4
rsync -avur --chown=docker:docker /path/to_local_location/ user@remote.adress.org:/path/to_remote_location/
5
```
6
7
:::warning
8
## Mind the Trailing Slash (/) in rsync Paths
9
10
When using rsync, the presence or absence of a trailing slash (/) on the source path changes how files are copied:
11
12
13
- ✅ With a trailing slash (/path/to/local_dir/):
14
15
→ rsync copies the contents of the directory into the destination.
16
17
(This is what you usually want.)
18
19
- ⚠️ Without a trailing slash (/path/to/local_dir):
20
21
→ rsync copies the entire folder itself (as a subdirectory) into the destination.
22
23
(This can accidentally create an extra nested folder.)
24
:::