Skip to content

Commit 0db2ceb

Browse files
committed
Automated commit on 2024-07-20 14:03:07 CST
1 parent e118eb4 commit 0db2ceb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

content/posts/rsync-usage.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,22 @@ Add the following syntax to the end of the file:
316316
## This will start the job at 1:00 a.m. every day.
317317
~~~
318318

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+
319335
---
320336

321337
### Conclusion

0 commit comments

Comments
 (0)