2
votes
3answers
238 views

Should I use ec2 as a file server?

I need to be able to share user uploaded content across multiple EC2 application servers. I have looked at rsync, mounted NFS, and S3 as potential options of being able to share this data in almost ...
0
votes
2answers
192 views

why rsync is not working with crontab?

when I run the following manually it runs perfectly: /usr/bin/rsync -arvth -e "ssh -i /watch/scripts/word.pem" 1.1.1.1:/opt/ /opt when it runs using crontab. I get: Permission denied ...
0
votes
1answer
48 views

Disk Writes to Mounted EBS Volume Not Logged in Monitor

I have an EBS volume specifically dedicated to storing remote backups via rsync. This volume is attached and mounted to an EC2 instance. The user mediating backups has access to this volume via a ...
1
vote
2answers
2k views

rsync as root to /var/www failing with “protocol version mismatch”

I'm trying to set up a one command way to move website code from a dev machine up into my Ubuntu EC2 instance and have it be copied straight into the /var/www/mywebsite folder where nginx expects to ...
3
votes
3answers
561 views

How to keep multiple servers in sync file wise?

I'm currently managing a cluster of PHP-FPM servers, all of which tend to get out of sync with each other. The application that I'm using on top of the app servers (Magento) allows for admins to ...
0
votes
1answer
110 views

Subsequent runs of rsync locally don't reduce data transferred

I have an EC2 instance with data I want to sync to a mounted, but remote, volume, as a backup. rsync seems like the way to go with this, so as a test I took my test file (a Postgres pg_dump file) and ...
1
vote
2answers
441 views

rsync to EC2: Identity file not accessible

I'm trying to rsync a file over to my EC2 instance: rsync -Paz --rsh "ssh -i ~/.ssh/myfile.pem" --rsync-path "sudo rsync" file.pdf ubuntu@ec2-XXX-XX-XX-X.compute-1.amazonaws.com:/home/ubuntu/ ...
1
vote
1answer
76 views

rsync webapps sub-directories

Can I run tomcat as ec2-user? The issue is: I need to rsync some sub-folders of webapps folder between 2 ec2 instances. The rsync works for all folders owned by "ec2-user" but for the webapps ...
0
votes
6answers
1k views

realtime sync of files between instances

In my scenario, i have 2 ec2 instances and need to sync the files between them in realtime. Can I do this with rsync? Can anyone please suggest how to schedule a rsync?
0
votes
0answers
68 views

realtime sync files between ec2 instances [duplicate]

Possible Duplicate: M-M or M-S replication of EBS volume across multiple EC2 instances realtime sync of files between instances In my implementation, I have a java app that reads/writes ...
1
vote
2answers
2k views

rsync to EC2 using ssh -i

I'm able to ssh -i mykey.pem to EC2. I'm able to scp -i mykey.pem to EC2. But when I try to rsync -avz -e "ssh -i mykey.pem" I get this error: Warning: Identity file mykey.pem not accessible: No such ...
0
votes
1answer
154 views

Lsyncd installing issue on 64bit

During the installation of Lsyncd 2.0.6 ./configure && make && make install process I am receiving a not found error. gcc: /usr/lib/liblua.a: No such file or directory make[1]: *** ...
1
vote
1answer
417 views

ssh, rsync and does not map back error

I'm trying to rsync data between Amazon EC2 instances. This command works: ssh -i path_to_key/key.pem user@machine1 This command does not: rsync -e "ssh -i path_to_key/key.pem" ...
0
votes
0answers
652 views

Rsync and lsyncd error

I am on Amazon EC2 and trying to sync two directories(/var/www/html) on my instance together with lsyncd but I am receiving this error in the log: rsync: connection unexpectedly closed (0 bytes ...
1
vote
1answer
535 views

Running an rsync sweep before initializing lsyncd for synchronizing instances on EC2

My company uses several EC2 servers that will scale up and down according to the load we're receiving on our sites at any given moment. For the sake of our discussion here, we're running four ...
2
votes
2answers
308 views

What's the best way to Deploy/Update/Control Windows services on a hundred EC2 servers?

I'm developing an image processing application running on Windows on Amazon EC2. The application is currently a console app I'm starting manually on a few machines. I'm refactoring it into a Windows ...
2
votes
1answer
698 views

Best way to mirror data across two-node apache cluster

I'm architecting a new server structure and I plan to have two apache workhorses and a sql database behind both of them. I was wondering what the best way to mirror the data between the apache servers ...