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.
$ composer global require "velikonja/sync-fs"$ ~/.composer/vendor/bin/syncfsAdd folder ~/.composer/vendor/bin/ to $PATH variable for global usage.
$ composer require "velikonja/sync-fs"- 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.
Install dependencies
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install --devPHPUnit tests
$ vendor/bin/phpunitCoding standards tests
$ phpcs --standard=PSR2 --ignore=/vendor --ignore=/log ./

