Update README.md

This commit is contained in:
2025-01-06 15:18:06 +03:00
parent fb1ab2f8b5
commit f0a8abb380

View File

@@ -45,6 +45,34 @@ Currently, the timestamp format is not customizable. Let me know if support for
## Usage
Arguments
```shell
-dir-mode string
Mode bits for directories can be created while syncing (default "0777")
-file-mode string
Mode bits for files created while syncing (not applicable for hardlink mode) (default "0644")
-mode string
Mode (default "hardlink")
-overwrite
Overwrite existing files
-skip-full-sync
Skip full sync at startup
-source string
Source directory
-target string
Target directory
-watch
Watch for changes in the source directory (default true)
```
`-skip-full-sync` and `-watch` are not compatible.
`-source` and `-target` are required.
## Examples
### One-Time Run
#### Copy Files