We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e118eb4 commit 0db2cebCopy full SHA for 0db2ceb
content/posts/rsync-usage.md
@@ -316,6 +316,22 @@ Add the following syntax to the end of the file:
316
## This will start the job at 1:00 a.m. every day.
317
~~~
318
319
+#### 3. Others
320
+> Create a copy of the directory structure from the 2023-2024/ directory in the 2024-2025 directory
321
+
322
+~~~bash
323
+rsync -a --include '*/' --exclude '*' 2023-2024/ 2024-2025
324
+~~~
325
326
+| Option | Description |
327
+| ------------------- | ----------------------------------- |
328
+| -a | "archive" mode |
329
+| --include '*/' | includes all directories (*/) |
330
+| --exclude '*' | excludes all files (*) |
331
+| 2023-2024/ | Existing Folder |
332
+| 2024-2025 | New Folder |
333
334
335
---
336
337
### Conclusion
0 commit comments