Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glynnforrest/selective-sync
Sync part of a directory to another using various strategies.
https://github.com/glynnforrest/selective-sync
Last synced: 29 days 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-15T23:58:07.000Z (over 9 years ago)
- Last Synced: 2024-11-05T13:51:55.535Z (3 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