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 /data/ouptut of an motioneyeos device with a server #630

Closed
Rouzic6666 opened this issue Dec 8, 2016 · 5 comments
Closed

rsync /data/ouptut of an motioneyeos device with a server #630

Rouzic6666 opened this issue Dec 8, 2016 · 5 comments

Comments

@Rouzic6666
Copy link

Rouzic6666 commented Dec 8, 2016

Hi,
I would like to sync periodically /data/ouptut of a motioneyeos rpi with a server. By using a command as
rsync -avzh root@motioneyeos:/data/output local_folder on the server.
but rsync is not installed on motioneyeos...
I tried to tinker an installation by copying files (/usr/bin/rsync, libs...) from a rpi where rsync worked without success...
How I can move forward
Regards
JL

@cpinkham
Copy link

cpinkham commented Dec 8, 2016

I have rsync running on a Pi running MotionEyeOS and I believe all I had to copy from a Raspbian Wheezy install was the rsync binary itself and the libacl.so.1 and libattr.so.1 libraries. I put the binary in /usr/bin and the libraries in /lib and I can run rsync over ssh to pull files off the Pi.

@Rouzic6666
Copy link
Author

Rouzic6666 commented Dec 9, 2016

Hi cpinkham,
I had done exactly what you describe in your post... but may mistake was do use a "banana PI R1" rsync install as reference. It is not exactly the same processor: 'A20 ARM Cortex-A7' for banana versus 'ARMv6' for RPI, and generate error like 'illegal instruction' when executed...
I redo the same from a RPI rsync install and, as you said, it works! thanks you!
JL

@Chiny91
Copy link

Chiny91 commented Dec 9, 2016

Copying files across is hit and miss really - lucky it worked. Linux generally gets upset if libraries/modules/etc get used that were not compiled against the same source. The cleaner solution, if more complex, is to download the source for motionEyeOS from GitHub, config in rsync and re-compile. I can say that works nicely, with no risk of oddball behaviour from mismatching libraries etc.

rsync is excellent of course for slurping those jpg files from the Pi. I throttle rsync with --bwlimit to avoid too much stress on the bandwidth limited ethernet of the Raspberry Pi.

@ccrisan
Copy link
Collaborator

ccrisan commented Dec 9, 2016

Guys, 8a28d2c adds the rsync binary to the OS image.

@ccrisan ccrisan closed this as completed Dec 9, 2016
@Chiny91
Copy link

Chiny91 commented Dec 10, 2016

Excellent, many thanks; no more compiling specials for me 😌 My R & Banana Pi boxes never liked saving directly to Dropbox and so on; maybe a bandwidth throttle or raising the niceness of that process would have helped. rsync is most useful for these aspects and behaves itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants