Commit 6c5929

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