Archive

Archive for May, 2010

Allow external connections to MySQL server on Plesk

May 27th, 2010 admin No comments

Comment out “skip-networking parameter” in /etc/my.cnf

Categories: mysql Tags:

Using s3sync.rb to synchronize files to/from Amazon

May 23rd, 2010 admin No comments

Examples:
———
(using S3 bucket ‘mybucket’ and prefix ‘pre’)

Put the local etc directory itself into S3

s3sync.rb  -r  /etc  mybucket:pre

(This will yield S3 keys named pre/etc/…)

Put the contents of the local /etc dir into S3, rename dir:

s3sync.rb  -r  /etc/  mybucket:pre/etcbackup

(This will yield S3 keys named pre/etcbackup/…)

Put contents of S3 “directory” etc into local dir

s3sync.rb  -r  mybucket:pre/etc/  /root/etcrestore

(This will yield local files at /root/etcrestore/…)

Put the contents of S3 “directory” etc into a local dir named etc

s3sync.rb  -r  mybucket:pre/etc  /root

(This will yield local files at /root/etc/…)

Put S3 nodes under the key pre/etc/ to the local dir etcrestore
**and create local dirs even if S3 side lacks dir nodes**

s3sync.rb  -r  --make-dirs  mybucket:pre/etc/  /root/etcrestore

(This will yield local files at /root/etcrestore/…)

Source: http://s3.amazonaws.com/ServEdge_pub/s3sync/README.txt

Categories: Amazon Tags: