https://github.com/glynnforrest/selective-sync
Sync part of a directory to another using various strategies.
https://github.com/glynnforrest/selective-sync
Last synced: 3 months ago
JSON representation
Sync part of a directory to another using various strategies.
- Host: GitHub
- URL: https://github.com/glynnforrest/selective-sync
- Owner: glynnforrest
- License: mit
- Created: 2015-05-15T23:57:47.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-15T23:58:07.000Z (about 10 years ago)
- Last Synced: 2025-02-15T01:28:03.449Z (5 months ago)
- Language: PHP
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Selective Sync
Synchronise part of a directory to another directory using various
strategies.## Usage
```bash
./selective-sync [OPTIONS] SOURCE_DIR TARGET_DIR
```## Options
### Strategies
Pass the `--strategy` option to change the strategy used to select
files to copy.* `random` - randomly sampled
* `alphabetical` - in### Limit
The `--limit` option controls how many files to sync.
* 2M - 2Mb of files
* 30% - Roughly 30% of the source directory### File handlers
Use the `--handler` option to change the handler used to copy files.
```bash
./selective-sync* `rsync` - Use rsync to copy files (default)
* `php` - Use native php functions to copy files (slower)## Examples
## License
MIT, see LICENSE for details.
Copyright 2015 Glynn Forrest