BLOG main image
분류 전체보기 (77)
프로젝트 (8)
IT소문 (9)
영화가주는인생 (5)
OpenAPI (9)
DBMS (5)
JAVA (16)
IPhone/Object-C (9)
안드로이드 (0)
WEB etc (8)
Server (1)
Michael Kors Handbags on Sale
Michael Kors Handbags on Sale
Nike Roshe Run
Nike Roshe Run
michael kors handbags outlet
michael kors handbags outlet
outlet de zapatillas nike
outlet de zapatillas nike
Cheap beats by dre uk
Cheap beats by dre uk
2,384,655 Visitors up to today!
Today 2 hit, Yesterday 8 hit
daisy rss
'2013/12'에 해당되는 글 1건
2013.12.02 14:34

리눅스 시스템 사이에서 백업을 해야 할일이 생겨서 이것저것 찾아 보다가..
rsync를 사용하기로 했습니다.

우선 ssh를 통해서 rsync 백업을 할려고 하면, password를 묻습니다.
한번씩 할 때는 패스워드를 치면 상관없지만, crontab을 사용해서 주기적으로 할려고 하면 문제가 발생합니다.

해결하는 방법을 이것저것 찾았는데 2가지 정도가 나오네요.

첫번째는 ssh-keygen을 통해서 패스워드를 묻지 않게 하는 방법 입니다.

ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa): <ENTER>
Enter passphrase (empty for no passphrase): <ENTER>
Enter same passphrase again:  <ENTER>
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/
The key fingerprint is:
58:bd:ef:fd:3b:62:79:2e:ea:de:c4:73:2d:7d:11:2b root@web-tl
The key's randomart image is:
+--[ DSA 1024]----+
|                 |
|         .       |
|        . .    . |
|       o   .    o|
|      . S .  E o |
|           .. ..o|
|            .+o.+|
|           .o*o+.|
|          o++.*++|
cat ~/.ssh/ | ssh [원격ID]@[원격HOST] "cat >> .ssh/authorized_keys"
password: 암호입력<ENTER>
# _

이렇게 설정을 해 두면, 해당 원격 서버에 접속할때 암호를 전혀 묻지 않게 됩니다.

# rsync -avzP -e ssh [원격HOST]:/home/source /home/target

이런식으로 백업 하시면 됩니다.

하지만, 뭔가 찝찔하죠..
누구나 이 자리에 앉으면 패스워드를 몰라도 원격 호스트에 접근을 할 수 있게 되죠...

두번째는 sshpass를 사용해서 접근하는 방법니다.
CentOS나 fedora에서는 기본 yum해서는 들어 있지 않습니다.
아래와 같이 epel을 통해서 받습니다.

# sudo su -
# rpm -Uvh
# yum update
# yum -y install sshpass

이렇게 설치해 주시면 됩니다. 
Ubuntu를 쓰시는 분들은 apt-get으로 받으세요.

# sudo apt-get install sshpass

sshpass을 사용법을 알아보면..  아래와 같습니다.

sshpass -p '[암호]' ssh [원격ID]@[원격HOST]

# sshpass -p 'myPassword' ssh


그러면, 이걸로 rsync를 해 봐야 겠죠?

# rsync --rsh="sshpass -p myPassword ssh -l username" /backup/

이렇게 하시면 됩니다.

참 쉽죠?

여기서 주기적으로 백업을 하고 싶다면..

# crontab -e

이렇게 뛰우시고 내용을 수정하시면 됩니다.

*/5 * * * * rsync --rsh="sshpass -p myPassword ssh -l username" /backup/

이렇게 해 두면 5분 주기로 백업이 진행 됩니다.

이전 댓글 더보기
pTlzpc04 | 2014.02.24 01:50 | PERMALINK | EDIT/DEL | REPLY
[url=]Cheap Michael Kors Purses[/url] [url=]Cheap Michael Kors Handbags[/url] [url=]Michael Kors Online[/url]
health care and maintenance to suit nice gold watches

grouping over 8 bits, and thus overall can take 256possible rates. your personal computer runs on a byte to keep friendly characters, Suchas the character, The number or go with the image over laptop computer verbal, specific value okay and as well M are employed denotethous million. the picture B will mean bytes or thesymbol b signifies chunks. that bandwidth of a traffic is going to be shown in text of and as a result manybits with regard to second. warming up, you may have a switch upconnection to you web service provider where helps 56Kbps (Fifty six thousand pieces persecond). as there are 8 chunks wealth look, splitting up 56Kby 8 gives us 7KB each and every 2nd. data transfer might be spoken to nova scotia goose release the internet in pieces for second. the higheramount, The a lot more which has been sent single second. it indicates internet streaming audioand online video media may well other opinions "enjoy" ordeals, and so target audience moncler luxembourg canwatch otherwise concentrate on circumstances due to the fact carry. exploding car stereo clip normally takes unique servers and cleaners andsoftware being start up on your hard disk. when youuse a waveform audio document on a world-wide-web site, The cell phone mustdownload full content prior to it being playe. (additional information)reloading.

[url=]Cheap Michael Kors[/url] [url=]Cheap Michael Kors Handbags[/url] [url=]Micheal Kors On Sale[/url]
Marlonwyi | 2014.02.24 05:52 | PERMALINK | EDIT/DEL | REPLY
[url=]active ingredient in the prescription drug zithromax[/url]
[url=]azithromycin 500 mg birth control[/url]
[url=]methocarbamol 750 mg identification[/url]
[url=]buy clomid online united states[/url]
[url=]levaquin how to take 750 mg dosage[/url]
[url=]methocarbamol dosage 750 mg street value[/url]
[url=]clomiphene citrate 50 mg pregnancy[/url]
[url=]metformin 1000 mg extended release[/url]
[url=]how much does robaxin cost without insurance[/url]
[url=]levaquin 500 mg 10 days[/url]
[url=]what is azithromycin 100 mg for[/url]
[url=]levaquin generic side effects nausea[/url]
[url=]clomid steroids price[/url]
Marlonxhj | 2014.02.24 19:12 | PERMALINK | EDIT/DEL | REPLY
[url=]valtrex available in generic[/url]
[url=]metformin 750 mg 143[/url]
[url=]drug metformin hcl 500 mg[/url]
[url=]how much does levaquin cost with insurance[/url]
[url=]clomid tablets price[/url]
[url=]what is tramadol hcl 50 mg tablet amn[/url]
[url=]500 mg levaquin pneumonia[/url]
[url=]cost of ventolin nebules[/url]
[url=]generic name for azithromycin[/url]
[url=]valacyclovir generic cheap[/url]
[url=]ovinum clomiphene citrate 50mg[/url]
[url=]ventolin inhaler cfc free price[/url]
[url=]methocarbamol 500mg recommended dose[/url]
Marlonmhh | 2014.02.25 03:52 | PERMALINK | EDIT/DEL | REPLY
[url=]withdrawal symptoms from accutane[/url]
[url=]tramadol stada efg cр±ps 50 mg[/url]
[url=]how many 50mg tramadol can i take to get high[/url]
[url=]average cost of azithromycin 250 mg[/url]
[url=]dosage of levaquin 500 mg[/url]
[url=]clomid and progesterone online[/url]
[url=]generic valtrex online no prescription[/url]
[url=]clomid generic name[/url]
[url=]brand levitra for sale[/url]
[url=]how much is clomid cost[/url]
[url=]buy antabuse 200mg online[/url]
[url=]valtrex 1000 prices[/url]
[url=]valtrex 500 mg no prescription[/url]
esociosteve | 2014.02.25 09:48 | PERMALINK | EDIT/DEL | REPLY
Millions of folks are out from the terrible economic system. These are fighting to territory even small tasks.The result is property foreclosure and bankruptcy.Will not develop into a target of long term joblessness. Read on to acquire more information on how you can get the job of the desires even just in today's terrible overall economy.

It is always vital that you dress for fulfillment while you are career camping. Folks usually see someone who an individual who's outfitted beautifully is way better for the position. You should outfit appropriately even if you are just returning an application, however, there will not be a desire to wear for the nines every time.

Once they undervalue them selves, people will typically demand insufficient with the idea of landing the task.This makes you peer desperate so when.

Possess some inquiries to your interviewer. If there are questions, you will often occasions be asked.

A lot of excellent firms in the nation offer saunas, health clubs or even restaurants within the creating.This generates a better atmosphere for folks to be effective in making the office much more in short supply because region. This gives the business the cabability to bring in from your increased pool area of people.

Modern technology and practices in business are usually altering so it's best to keep up to date with almost everything.Acquire helpful sessions and go to professional workshops. This information could just provide you with be a more desirable employee inside the benefit over other candidates in regards a chance to employ.

Be sure your personal references have updated contact information. It will probably be harmful to a company call your personal references and learn the information is no longer legitimate. Call your recommendations to confirm that their area and quantity using the same phone number.

Try to established yourself a trustworthy timetable that you work. Several employers like regularity making use of their staff members. They may believe in you a lot a lot more when they're mindful of what to expect by you. Be quite particular with day-to-day function time and lunch time. Speak with your manager whenever you know if you need to make changes.

Don't restrict yourself to one kind of career. Check out the titles that enable you are seeking. This broadens the variety of tasks that you can get.

Be sure that you get wellness prepare. The premium is undertaken correct from the verify prior to taxation and it is definitely less expensive than any individual program. Hitched men and women should evaluate plans to determine which 1 allows the right one.

Ensure that you follow a steady timetable when working. Your workplace will enjoy the persistence and consideration to particulars. They will believe in you more if they are aware about what to prepare for. Be certain with everyday job lunch or dinner and hrs time. If something comes up, speak to the supervisor quickly.

You wish to discover the initial individual that strolls through your entrance doors. Using the services of too rapidly can cause discouragement and issues in remedying the person you retain the services of.

Tend not to lay within your interview. The job interviewer might look into your information, and it can result in a sudden disqualification. Even when they don't, it could possibly quickly grow to be obvious that you don't possess the capabilities or experience you reported you did.

Their internet site or some other resources you will find online for helpful information, investigation any company you will be making use of with prior to your interview.Take a look at their on the web appearance. Discover anything you can about the subject. This information will make you aside from the other applicants and demonstrates that your fascination is truthful.

Be sure to take some time and complete all programs thoroughly. Implementing you to ultimately hand out an effective app demonstrates your possible boss you might be detail-focused and realize how to stick to recommendations, even if you could have this within your continue.

If you utilized to work for, speak with the employer. When you departed over a good notice, there should be no trouble, despite the fact that be fine about requesting.

Find out about the responsibilities of your other divisions inside your business. Your company's planet is far more than whatever your unique activities might be for them. Understanding how it all performs jointly can help you do the best. It's significant to be sure you ask concerns of your own peers in other sectors. Understand their jobs to help you do far better at yours.

You can use volunteer the opportunity to obtain mitts on discovering or get courses that will help make your decision easier.

Part time work can be extremely helpful in some cash when you find yourself no longer working full-time.You can find prospects giving, contacting work or just driving a car work. This can help you to get your name around and property a job interview for the job.

Constantly say give thanks to your job interviewer following a conversation. You should also incorporate every other requests or worries inside your thank you be aware.

If your interviewer requests you if you have had difficulties with a coworker, don't lie and say you obtain as well as anyone. This really is a fraudulent.

Understand how many other divisions with your business. Your company is normally bigger than what your office does. Understanding how all of it works collectively assists you to understand your greatest. It's essential then to inquire about people what they do within their departments. Learn more about their morals and principles.

Think about volunteering with your selected discipline to acquire much more encounter and also to make connections that could be useful at some point. A great deal organizations do work with volunteers if money are available for paid for jobs become offered.Volunteering can furthermore be an effective way to have specialist personal references.

If this looks extremely hard to locate a job, you might like to consider a new industry of employment. Discover which industries are do and using the services of some research to discover the skills necessary. After you enter the doorway you possess no restrictions.

You need to understand how to represent yourself within a good way in the course of career interviews. You ought to be outgoing and abilities when evaluating for any career. You need a great sales pitch to provide yourself since the suitable personnel.It shouldn't be more than one minute and it should be memorized.

When you're performing study on somebody you want to work for, learn all you are able concerning the company managing structure. Know the composition in the firm. This is significant information and facts will likely be necessary throughout an meet with. It will possess the additional benefit of assisting you know what form of questions regarding the job interview.

The work of your own desires will not be unattainable. You will find the job you need in any economic system, by arming on your own with good advice. Use every little thing you've read on this page to assist you on your look for. Stay careful and don't quit!
Marlonfbs | 2014.02.25 11:40 | PERMALINK | EDIT/DEL | REPLY
[url=]can you take 200mg of tramadol[/url]
[url=]levitra for sale uk[/url]
[url=]tramadol comes in what mg[/url]
[url=]zithromax tri pak mg[/url]
[url=]levitra generic 10mg or 20mg[/url]
[url=]azithromycin prescribed single dose[/url]
[url=]azithromycin 250mg for acne[/url]
[url=]generic metformin er price[/url]
[url=]clonidine treatment conduct disorder[/url]
[url=]tramadol cod no prescription[/url]
[url=]azithromycin can it be purchase[/url]
[url=]50mg clomid and twins[/url]
[url=]buying valtrex online[/url]
Marlonoju | 2014.02.25 18:57 | PERMALINK | EDIT/DEL | REPLY
[url=]3rd cycle of clomid 50mg[/url]
[url=]clomid 100mg stories[/url]
[url=]what kind of doctor can prescribe clomid[/url]
[url=]levaquin 500 mg what is it[/url]
[url=]clomid 50 mg 5 9[/url]
[url=]tramadol apap 37 5 mg side effects[/url]
[url=]methocarbamol dosage 750 mg effects[/url]
[url=]valacyclovir prescription cheap[/url]
[url=]clomid sold over the counter[/url]
[url=]generic valtrex herpes simplex[/url]
[url=]buying accutane online forum[/url]
[url=]azithromycin 500 mg treatment[/url]
[url=]how much does clomid cost australia[/url]
Marlonbfc | 2014.02.26 02:35 | PERMALINK | EDIT/DEL | REPLY
[url=]azithromycin 250 mg std[/url]
[url=]tramadol hcl 50 mg tab[/url]
[url=]is ventolin over the counter australia[/url]
[url=]progesterone levels clomid 100mg[/url]
[url=]2000 mg metformin day[/url]
[url=]where can i buy azithromycin 500mg[/url]
[url=]buy methocarbamol online canada[/url]
[url=]clomid increased to 100 mg[/url]
[url=]methocarbamol 750 mg recreational use[/url]
[url=]what is in azithromycin tablet 250 mg[/url]
[url=]clomid 100mg 2010[/url]
[url=]buy gabapentin 800 mg[/url]
[url=]buy 50mg clomid[/url]
Marlonxhm | 2014.02.26 13:00 | PERMALINK | EDIT/DEL | REPLY
[url=]clomid buy without rx[/url]
[url=]buy valacyclovir uk[/url]
[url=]where to buy clomid tablets in the uk[/url]
[url=]azithromycin 250 mg where to buy[/url]
[url=]tramadol acet 37 5 325mg[/url]
[url=]ventolin hfa 90 mcg inhaler price[/url]
[url=]tramadol extended release 300 mg[/url]
[url=]cheap levitra no prescription[/url]
[url=]do you need a prescription for tramadol[/url]
[url=]accutane 40 mg dosage[/url]
[url=]azithromycin buy uk no prescription[/url]
[url=]zithromax cost at walmart[/url]
[url=]levaquin prescription assistance program[/url]
Marlonyij | 2014.02.26 20:13 | PERMALINK | EDIT/DEL | REPLY
[url=]clomid buy usa[/url]
[url=]tramadol 50 mg overdose[/url]
[url=]levaquin 750 mg coupons[/url]
[url=]methocarbamol tablets 500 mg[/url]
[url=]tramadol 50 mg get you high[/url]
[url=]generic valacyclovir versus valtrex[/url]
[url=]online pharmacy valtrex[/url]
[url=]levitra professional 20 mg duration[/url]
[url=]azithromycin 250 mg children[/url]
[url=]viagra cialis levitra cheap[/url]
[url=]how can i buy clomid[/url]
[url=]snorting methocarbamol 750 mg[/url]
[url=]methocarbamol 750 mgs dosage[/url]
Marlonijn | 2014.02.27 03:48 | PERMALINK | EDIT/DEL | REPLY
[url=]buying valtrex online in canada[/url]
[url=]ventolin inhaler hfa price[/url]
[url=]100mg of clomid dosage[/url]
[url=]order accutane online pharmacy[/url]
[url=]60 mg of accutane per day[/url]
[url=]mylan generic valtrex[/url]
[url=]azithromycin 500 mg treatment[/url]
[url=]buy zithromax order online no prescription[/url]
[url=]antabuse prescription assistance[/url]
[url=]clonidine 0 2 mg used[/url]
[url=]taking two 50mg tramadol[/url]
[url=]clomid cost 2010[/url]
[url=]clomid online forums 2012[/url]
Marloniwp | 2014.02.27 20:23 | PERMALINK | EDIT/DEL | REPLY
[url=]can i buy clomid[/url]
[url=]buy methocarbamol 750 mg recreational use[/url]
[url=]tramadol buy no prescription uk[/url]
[url=]why is valtrex prescribed for[/url]
[url=]clomid 50mg metformin[/url]
[url=]tramadol 50 mg recreational use[/url]
[url=]buy valtrex shingles[/url]
[url=]clomid iui cycle cost[/url]
[url=]200 mg tramadol er[/url]
[url=]order metformin online no prescription[/url]
[url=]prices for valtrex in canada[/url]
[url=]clomid online prices at walmart[/url]
[url=]cheap generic levitra online[/url]
Marlonwhj | 2014.02.28 04:23 | PERMALINK | EDIT/DEL | REPLY
[url=]how to buy valtrex online[/url]
[url=]clomid 50mg discharge[/url]
[url=]generic valtrex manufacturer coupons[/url]
[url=]tramadol 50mg getting high[/url]
[url=]tramadol 50 mg sleep[/url]
[url=]azithromycin 500 mg for sale[/url]
[url=]clomid clomiphene citrate 50mg tablets[/url]
[url=]zithromax no prescription canada[/url]
[url=]herpes valtrex prescription assistance programs[/url]
[url=]twins on 100mg of clomid[/url]
[url=]tizanidine 4 mg tab used[/url]
[url=]order antabuse online canada[/url]
[url=]buy methocarbamol for horses[/url]
jsiment | 2014.02.28 10:38 | PERMALINK | EDIT/DEL | REPLY
Exclusive. Exceptional. Spectacular. Thrilling. Memorable. Obtaining picked out a good bridal dress so that you can apply to along with the the vast majority of Absolutely destination marriage ceremony together with many of the works placed on it may be wonderful. No matter if an individual elegant plus secure barefoot sandals towards se side move, this particular bride-to-be decides on any type of location ceremony diamond as a way to put on. That fancyful as well as the scenario
Marlontdo | 2014.02.28 12:25 | PERMALINK | EDIT/DEL | REPLY
[url=]buy valtrex pills[/url]
[url=]zithromax 250mg z pak[/url]
[url=]tramadol hcl 50 mg tab dosage[/url]
[url=]antabuse 250 mg effects[/url]
[url=]what is tramadol 50mg[/url]
[url=]generic valtrex online pharmacy[/url]
[url=]buying clomid off internet[/url]
[url=]clomid buy in canada[/url]
[url=]buy generic tramadol online no prescription[/url]
[url=]the cost of valtrex without insurance[/url]
[url=]clomid success 150 mg[/url]
[url=]glucophage metformin hcl tablets 500mg[/url]
[url=]taking unprescribed clomid buy[/url]
AndrejXazov | 2014.03.01 00:40 | PERMALINK | EDIT/DEL | REPLY
[url=]Хотелось бы [/url] [url=]видеть [/url] [url=]надпись [/url] [url=]to be [/url] [url=]continied[/url]

Marlonaat | 2014.03.01 04:06 | PERMALINK | EDIT/DEL | REPLY
[url=]clomid 100 mgs and ovulation[/url]
[url=]is tramadol hcl 50 mg a narcotic[/url]
[url=]gabapentin off label prescription[/url]
[url=]valacyclovir hcl tablets price[/url]
[url=]metformin extended release 500mg[/url]
[url=]zithromax buy online in the uk[/url]
[url=]order zithromax azithromycin canada[/url]
[url=]ultram tramadol hcl 50 mg[/url]
[url=]buy methocarbamol no prescription[/url]
[url=]clomid free sample[/url]
[url=]tramadol 50 mg erowid[/url]
[url=]levaquin 500mg prescribed for[/url]
[url=]valtrex 500mg shingles[/url]
Marlonaxd | 2014.03.01 21:27 | PERMALINK | EDIT/DEL | REPLY
[url=]generic zithromax over counter[/url]
[url=]azithromycin 250 mg over the counter[/url]
[url=]levaquin 500 mg prescribed[/url]
[url=]twins with clomid 150mg[/url]
[url=]tramadol 50mg dosage for adults[/url]
[url=]cold sore valtrex 500mg[/url]
[url=]where to buy clomiphene[/url]
[url=]do i need a prescription for ventolin in[/url]
[url=]cost of a ventolin inhaler[/url]
[url=]what is tramadol 50mg used for on dogs[/url]
[url=]where to buy metformin[/url]
[url=]where to buy valtrex online[/url]
[url=]azithromycin 500mg is use for what use[/url]
Marlonzwe | 2014.03.02 06:20 | PERMALINK | EDIT/DEL | REPLY
[url=]azithromycin tablet price india[/url]
[url=]ventolin over the counter canada[/url]
[url=]levaquin 500 mg effects[/url]
[url=]azithromycin can i buy over the counter[/url]
[url=]antabuse tablets 200mg emc[/url]
[url=]buy clomid china[/url]
[url=]levitra pill side effects[/url]
[url=]metformin 500 mg over the counter[/url]
[url=]40 mg accutane results[/url]
[url=]500 mg of tramadol[/url]
[url=]valacyclovir hcl generic[/url]
[url=]is ventolin over the counter australia[/url]
[url=]tramadol 50mg for dogs side effects[/url]
RichardTete | 2014.11.11 11:14 | PERMALINK | EDIT/DEL | REPLY
이용약관위배로 관리자 삭제된 댓글입니다.
prev"" #1 next