velikonja/sync-fs
Composer 安装命令:
composer require velikonja/sync-fs
包简介
PHP Library with command line tool for simple syncing folders via configuration file.
README 文档
README
PHP Library with command line tool for simple syncing folders via configuration file.
SyncFS is PHP5 library build on Symfony components. Via simple configuration file written in YAML, you can define folders that you would like to sync, locally or remotely.
Usage examples
- Backing up local folder to external hard drive.
- Backing up local folder to remote machine.
- Syncing production assets to local machine for easier development.
- Syncing production assets to staging / beta environment for better mimicking of production.
Dependencies
- Rsync - command line tool
- Linux or OSX machine.
Install as tool
Via as composer
$ composer global require "velikonja/sync-fs"
Usage
$ ~/.composer/vendor/bin/syncfs
Add folder ~/.composer/vendor/bin/ to $PATH variable for global usage.
Install as library
$ composer require "velikonja/sync-fs"
Setup and usage of tool
- First run
syncfs initto create example config file in home folder (you can change config path via command arguments). - Edit config file.
- Run
syncfs sync. - Explore other possibilities with
syncfs list.
Contributing
Install dependencies
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install --dev
Tests
PHPUnit tests
$ vendor/bin/phpunit
Coding standards tests
$ phpcs --standard=PSR2 --ignore=/vendor --ignore=/log ./
统计信息
- 总下载量: 7.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-25