Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevencyb/dtsync
dtsync is a command-line tool for synchronizing directories, providing options for file removal or replacement.
https://github.com/stevencyb/dtsync
Last synced: 28 days ago
JSON representation
dtsync is a command-line tool for synchronizing directories, providing options for file removal or replacement.
- Host: GitHub
- URL: https://github.com/stevencyb/dtsync
- Owner: StevenCyb
- License: mit
- Created: 2024-01-19T09:10:31.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-19T09:51:37.000Z (12 months ago)
- Last Synced: 2024-01-19T12:10:05.215Z (12 months ago)
- Language: Go
- Homepage:
- Size: 257 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dtsync
`dtsync` is a flexible file synchronization tool designed to keep your directories in sync.
It provides a simple command-line interface that allows you to specify source and destination directories, and offers options to remove or replace files. Whether you're managing backups, mirroring directories, or simply moving files around, dtsync can support you.## Usage
Currently supported arguments can be listed as follow.
```bash
$ ./dtsync -help
Usage of dtsync:
-src string
The source root path (required)
-dst string
The destination root path (required)
-remove
Remove files and directories in dst not included in src
-replace
Replace file on dst when different
```### Default Case
```bash
$ ./dtsync -src /a -dst /b
```### Case With Replace
```bash
$ ./dtsync -src /a -dst /b -replace
```### Case With Remove
```bash
$ ./dtsync -src /a -dst /b -remove
```### Case With Replace And Remove
```bash
$ ./dtsync -src /a -dst /b -replace -remove
```### Disclaimer
`dtsync` is provided "as is", without warranty of any kind.
The authors or copyright holders will not be liable for any damage, data loss, or any other issue that may occur as a result of using this tool.
Use at your own risk.