Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsync #1769

Closed
thferreira opened this issue Aug 24, 2018 · 5 comments
Closed

rsync #1769

thferreira opened this issue Aug 24, 2018 · 5 comments
Labels

Comments

@thferreira
Copy link

thferreira commented Aug 24, 2018

Info:

  • Docker version ( Docker version 18.06.0-ce, build 0ffa825 ):
  • Laradock commit ( 1b865dd ):
  • System info (Mac ):
  • System info disto/version: High Sierra

Issue:

I'm trying to run the command

<?php
$path = "/var/www/teste-domain/logs";
$server = "user@ip";
$output = shell_exec('rsync -az --progress ' . $path . ' ' . $server . ':public_html 2>&1');
echo "<pre>$output</pre>";
?>

but it returns

sh: 1: rsync: not found

@TheDailySpank
Copy link

TheDailySpank commented Aug 26, 2018

Have you tried adding 'rsync' to php-fpm/Dockerfile then rebuild php-fpm?

Original:

# always run apt update when start and after add new source list, then clean up at end.
RUN apt-get update -yqq && \
    apt-get install -y apt-utils && \
    pecl channel-update pecl.php.net

New:

# always run apt update when start and after add new source list, then clean up at end.
RUN apt-get update -yqq && \
    apt-get install -y apt-utils \
    rsync && \
    pecl channel-update pecl.php.net

Save and then run

docker-compose build php-fpm

@thferreira
Copy link
Author

@TheDailySpank i try but have the same problem
sh: 1: rsync: not found Exit status

@thferreira
Copy link
Author

No solution :(

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants