#!/usr/bin/php
<?php
  /*
   * cloudManager
   * tools/cloudManager/cmrsync
   * YeAPF 0.8.64-11 built on 2021-01-22 16:32 (-3 DST)
   * Copyright (C) 2004-2021 Esteban Daniel Dortta - dortta@yahoo.com - MIT License
   * 2019-07-19 18:34:19 (-3 DST)
   *
   * purpouse: to copy file over the network.
   */

  (@include_once "yclilib.php") or die("yclilib.php not found\n");
  if ($argc>2) {

    doOnCloud('rsync');

  } else {
    $myself=$argv[0];
    echo "$myself src dest\n";
    echo "src or dest can be node referenced as in these samples:\n";
    echo "  $myself *.html A:/var/www/html    (sync all html files to the 'A' node)\n";
    echo "  $myself *.php *:/var/www/html   (sync all php files to all nodes)\n";
    echo "\n\nWARNING: Disable bash wildcard expansion with 'set -f' statement before use this command";
  }
?>
