<?
global $USER;
$userId=$USER->GetID();
if(!empty($userId))
{
$gacode = "ga('create', 'UA-11111111-2', { 'userId': '%s' });";
echo sprintf($gacode, $userId);
} else {
echo "ga('create', 'UA-11111111-2', 'auto');";
}
?>
find /backup -type f -mtime -1 -exec rsync -avz -e "ssh -p 2222" {} user-dst@123.456.78.9:/home/backup/ \;
user-dst@123.456.78.9's password:
sending incremental file list
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]