Categories
System/Linux/Unix*

backup AWS script using rsync and ssh

# rsync -av -e ssh directory_name rimmon@192.168.100.10:/Volumes/disk/BK-svr-london # rsync -avz -e ‘ssh -i 遠端的KEY’ 遠端帳號@遠端IP:遠端目錄 近端目錄 # —— —— example: cat RUN_backup_aws.sh #/bin/sh /usr/bin/rsync -avz -e ‘ssh -i /home/xxx/_AWS/key_xxx.pem’ ec2-user@www.monster.com.tw:/etc /home/xxx/_AWS/BACKUP /usr/bin/rsync -avz -e ‘ssh -i /home/xxx/_AWS/key_xxx.pem’ ec2-user@www.monster.com.tw:/var/www /home/xxx/_AWS/BACKUP /usr/bin/rsync -avz -e ‘ssh -i /home/xxx/_AWS/key_xxx.pem’ ec2-user@www.monster.com.tw:/home/ec2-user /home/xxx/_AWS/BACKUP

Categories
System/Linux/Unix*

Amazon / AWS / EC2 linux version

cat /proc/version Linux version 2.6.35.11-83.9.amzn1.x86_64 (mockbuild@build-31003.build) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Sat Feb 19 23:42:04 UTC 2011   file /bin/bash /bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped   cat /proc/cpuinfo   processor : 0 vendor_id : GenuineIntel cpu […]

Categories
Network service System/Linux/Unix*

amazon aws ami LAMP / NGINX / PHP / memcache steps

// —– Using NGINX + PHP5-FPM sudo apt-get install nginx php5-fpm php5-mysql cd /etc/init.d/ sudo service apache2 stop sudo update-rc.d -f apache2 remove http://yoodey.com/how-install-configure-nginx-php-fpm-memcached-work-drupal-7-ubuntu-1010-maverick Install Memcached sudo apt-get install memcached libmemcached-dev php5-memcached php5-memcache // ==================== Getting a new virtual machine up and running from the default AMI is easy. Here’s my cookbook: Install basic services […]

Categories
JOB Network service

Amazon AWS EC2 service / cloud / 雲端

Dear EC2 Customer, You recently reached a limit on the volume of email you were able to send out of SMTP port 25 on your instance: Instance ID: i-9b8924ce * IP Address: 1.2.3.4 * Start date: 2011-06-01 22:47 +0000 In order to maintain the quality of EC2 addresses for sending email, we enforce default limits […]