セキュリティの関係で WEBサーバーとWEBサーバーからしかアクセスできないDBサーバーの構成で・・・
一部プログラムをDBサーバー側に置く必要があるがDBサーバーには直でつなげないから
WEBサーバーに一度アップしてsftpでコマンド毎回たたいて送ってたけどメンドいのでlftpを使ってみた。
lftpのmirrorを使って完成~♪
#!/bin/sh
LOCAL_DIRNAME=$1
REMOTE_DIRNAME=$2
USERID=$3
PASSWAD=$4
FTPSITE=$5
if [ -d $LOCAL_DIRNAME ]
then
lftp <<- END
open -u $USERID,$PASSWAD $FTPSITE
lcd $LOCAL_DIRNAME
cd /$REMOTE_DIRNAME
mirror -Rv
END
else
echo "No such directry."
fi
けどなぜか転送できていないケースがある。
毎回じゃなくて短いスパンで何度も更新してると効かないことがある。
短いスパン+ファイルサイズが変更されていない場合に起きるみたい。
更新された、、、って判定条件がタイムスタンプとファイルサイズの両者なのかな?
ってことで--ignore_sizeオプションを入れるも変化なし。。。
なんでやねん?
っていろいろ調べた末 どうもタイムスタンプが悪さをしているみたい
ようは新しいかどうかローカルとリモートでタイムスタンプ比較しているわけだけど
比較の際にローカル時刻とGMTの時刻を比較してたみたい。
以下を追加したら無事毎回転送されるようになりました。
set ftp:use-mdtm no
set ftp:timezone -9
これ、lftpのバグって言ってもいいレベルじゃない?
結局2時間ぐらい悩んだわけだけど だったら自分でファイル転送プログラム書いた方が速かった気がするw
まぁ次回から役に立つわけでよかったけれど・・・
ちなみにlftpでmirrorするのは今回が2回目なんだけど 前回はこんなオプション入れていないから・・・
こっそりなおしておきました。
まぁ前回はバックアップ目的だったから実行が1日1回とかだから上のバグ条件に当てはまるケースはあまり多くはなかったとは思いますけどね。
Ive just bumped on browsergames website , perhaps you have checked it before? Bye!
Awesome website man, looks pleasant. Ive been seeking something like this.
Wanted post. It's about time interesting.
I really don't have any idea the best way I appeared the following, but I assumed this post used to be great. I wouldn't recognize that you could be however definitely you are going to a well-known blogger if you arent already ;) Cheers!
In lots of ways ther
Its the fact is a terrific post. I know that anyone wish to visit it time and time again. After looking at this post I received some very unique information which have been the fact is beneficial for any individual. This can be a post owning some crucial information. If only that later on such posting moves on.
I sayeat!
Thanks a lot. It had become fun hearing
What a lovely day for a 131402! SCK was here
Quality is everything, so we need to ensure that there are values on what we are sharing to keep our subscribers interested.
Pretty section of content. I just stumbled upon your blog and in accession capital to assert that I acquire actually enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently quickly.
I like this site because so much useful material on here : D.
Very helpful post! I really enjoyed reading it. So excellent to read a post that is written in good English! I am going to certainly be back again for much more at some point. Thanks.
I do not understand exactly how i discovered this blog because I have been researching info on about the situation in Libya, but anyway I'm really lucky that I found your blog post since I had a pleasant 15 mins reading it. Keep it up! One last thing, would you recommend other useful content about the very same problem?
I have read nearly all the posts on your blog and I would to continue but I terribly want to sleep. It’s 4 a.m.
Very useful blog post. Your writing is extremely to the point as well as interesting. I'll definitely be following your RSS or Atom. I really hope you will post frequently on similar topics. However I'm curious as to what your sources for the post are? Cheers.
I wanted to compose a small message so as to thank you for these stunning tips and tricks you are sharing on this website. My extended internet lookup has now been honored with really good content to talk about with my classmates and friends. I 'd express that many of us site visitors actually are quite fortunate to dwell in a very good network with many awesome individuals with great secrets. I feel truly grateful to have discovered the web site and look forward to some more brilliant minutes reading here. Thank you again for a lot of things.
Can I simply say what a reduction to find someone who really is aware of what theyre talking about on the internet. You definitely know the best way to carry an issue to mild and make it important. More individuals need to read this and perceive this side of the story. I cant believe youre no more well-liked because you definitely have the gift.
You sure do understand what you're speaking about. Man, this site is just excellent! I cannot wait to read more of what you've got to state. I'm truly content that I found this when I did because I was really beginning to get bored with the whole blogging and site-building field. Youve turned me around man!
Great blog here! Also your website loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my website loaded up as fast as yours lol
It's perfect time to make some plans for the longer term and it is time to be happy. I've read this publish and if I may I want to suggest you some fascinating things or advice. Perhaps you can write subsequent articles referring to this article. I want to read even more things about it!
We want update of this blog. Thanks!
Thanks for posting about this, I would love to read more about this topic.
It¡¦s in point of fact a great and helpful piece of information. I¡¦m glad that you just shared this useful information with us. Please keep us up to date like this. Thank you for sharing.
you're really a good webmaster. The website loading velocity is amazing. It sort of feels that you're doing any unique trick. Also, The contents are masterwork. you've performed a wonderful activity in this topic!
Finally a smart blogger...I love how you're thinking and writing!
Sweet blog! I found it while surfing around on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Appreciate it
When I originally commented I clicked the -Notify me when new feedback are added- checkbox and now each time a comment is added I get 4 emails with the same comment. Is there any means you may remove me from that service? Thanks!
Would you be taken with exchanging links?
Yay google is my king assisted me to find this great internet site!
Up until now, all I have read on this article is extremely boring, and seems to be written by writers that lack education. You¡¯ve done a very good job conveying your passion with accurate information.
Fantastic internet web site. Lots of helpful info here. I'm sending it to some buddies ans additionally sharing in delicious. And naturally, thanks on your sweat!
Again, thank you for this blog
I'm delighted that I've noticed this weblog. Finally anything not a junk, which we undergo extremely frequently. The website is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us.
Hi, I do believe this is an excellent blog. I stumbled upon it on Yahoo , i will come back once again. Money and freedom is the best way to change, may you be rich and help other people.
Hey there! I've been reading your website for a while now and finally got the bravery to go ahead and give you a shout out from Atascocita Tx! Just wanted to tell you keep up the great work!
Actually like your web sites particulars! Undoubtedly an exquisite provide of data that is extraordinarily helpful. Keep it up to hold publishing and i’m gonna proceed studying by way of! Cheers.
Many thanks for posting this, It's just what I was researching for on bing. I'd so much relatively hear opinions from an individual, slightly than a company web web page, that's why I like blogs so significantly. Many thanks!
Thanks for taking the time to discuss this, I feel strongly about it and love studying more on this topic. If doable, as you gain experience, would you thoughts updating your blog with extra data? This can be very helpful for me.
This post is indeed quite interesting. Keep it up! I'll try here to further the contributions Vervolg.
The article is really very interesting! I will continue to try me here to keep you informed. Thank you!
I¡¯m a little surprised at how interesting your content is. I think you should make an ebook out of this information. Thank you for sharing.
I am often to running a blog and i really respect your content. The article has really peaks my interest. I'm going to bookmark your web site and keep checking for brand new information.
I'm often to blogging and i actually appreciate your content. The article has really peaks my interest. I am going to bookmark your website and maintain checking for brand new information.
Right now it sounds like Wordpress is the top blogging platform out there right now. (from what I've read) Is that what you are using on your blog?
I really like following your blog as the articles are so simple to read and follow. Excellent. Please keep up the good work. Thanks.
Hi. I wanted to drop you a quick note to express my thanks. I've been following your blog for a month or so and have picked up a ton of good information as well as enjoyed the way you've structured your site.
Lovely website! I am loving it!! Will be back later to read some more. I am taking your feeds also
I got what you intend,saved to favorites, very decent website.
Thanks so much for providing individuals with remarkably memorable chance to check tips from this web site. It's always very enjoyable and also stuffed with a great time for me personally and my office acquaintances to search your blog minimum 3 times weekly to see the latest tips you will have. And indeed, we're usually motivated for the special points you give. Some 1 ideas on this page are definitely the best we have all had.
backpedal captivity Stacy cassidy quite tattered chipmunk caravan adherent
That is the precise blog for anybody who needs to search out out about this topic. You notice a lot its almost hard to argue with you (not that I actually would need…HaHa). You positively put a brand new spin on a subject thats been written about for years. Nice stuff, just nice!
I would like to show my appreciation for your quality article. Your original content has given me reason to think about a lot of this information. Your writing style is original and engaging. Thank you.
Hey very nice blog!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also...
I'm usually to running a blog and i really appreciate your content. The article has actually peaks my interest. I'm going to bookmark your site and keep checking for brand new information.
looking around for the best site to get one.
I think that is an enchanting point, it made me think a bit. Thank you for sparking my pondering cap. On occasion I am getting such a lot in a rut that I simply feel like a record.
Wohh just what I was searching for, thank you for putting up.
You are a very smart person!
good good…this post deserves nothing …hahaha just joking :P …nice post
Wow! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
Great site. Lots of helpful information here. I am sending it to some buddies ans additionally sharing in delicious. And obviously, thanks in your effort!
Hi! I'm so glad I discovered your website. I actually located you by mistake, while I was seeking on Delicious for something diffrent. Regardless, I'm here now and would just like to say thank you for a awesome write-up and a all round useful weblog (I also really like the theme / design). I don't have plenty of time to browse all of it at the minute but I have bookmarked it as well as included your RSS feeds, so if I have time I will be returning to learn more. Please do maintain the amazing career.
This one is an inspiration personally to uncover out rather more related to this subject. I have to confess your information prolonged my sentiments in addition to I am going to right now take your feed to stay up to date on every coming blog posts you might probably create. You are worthy of thanks for a job completely achieved!
My associate and I really enjoyed reading this blog post, I was simply itching to know do you trade featured posts? I'm always looking for somebody to make trades with and merely thought I would ask.
I haven’t checked in here for some time as I thought it was getting boring, but the last handful of posts are really good quality so I guess I’ll add you back to my daily bloglist. You deserve it my friend.
Rather than produce the same old content you have taken this subject to a whole new level . Kudos for not following the standard writing crowd.
The Zune concentrates on being a Portable Media Player. Not a web browser. Not a game machine. Maybe in the future it'll do even better in those areas, but for now it's a fantastic way to organize and listen to your music and videos, and is without peer in that regard. The iPod's strengths are its web browsing and apps. If those sound more compelling, perhaps it is your best choice.
Today, while I was at work, my cousin stole my iphone and tested to see if it can survive a twenty five foot drop, just so she can be a youtube sensation. My iPad is now destroyed and she has 83 views. I know this is entirely off topic but I had to share it with someone!
have been reading along. I want to express my admiration of your writing skill and ability to make reader to read the while thing to the end. I would like to read more of your blogs and to share my thoughts with you.
Sounds very intersting.This helps me to learn something new.Thanks.
Valuable information and excellent design you got here! I would like to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up!
I have surfed the net more than three hours today, yet I never found any interesting article like yours. It's worth enough for me. Thanks.
An excellent article many thanks
I like the valuable details you give inside your articles. I’ll bookmark your weblog and check again here regularly. I’m quite certain I will learn lots of new stuff correct here! Greatest of luck for the next!
This article is blue ribbon material as far as I¡¯m concerned. I haven¡¯t used my brain so much in years. This is very interesting content.
Buygeneric drugs
I image this could be diverse upon the written content? in spite of this I nonetheless imagine that it usually is appropriate for virtually any type of subject material, as a result of it would often be satisfying to resolve a warm and pleasant face or possibly pay attention a voice whilst initial landing.
Pourquoi ne pas dire de la conversation quel empêche l'atout à compassion a a plupart des liseurs? Le phénomène primordial des précédents trimestres au sujet du communiqué des modernismes:
The phrase "domestic cat" is an oxymoron. -- George F. Will
Way cool, some valid points! I appreciate you making this article available, the rest of the site is also high quality. Have a fun.
I believe this website has some really superb information for everyone :D. "Nothing surely is so disgraceful to society and to individuals as unmeaning wastefulness." by Count Benjamin Thompson Rumford.
Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It's very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.
There are some interesting cut-off dates in this article however I don’t know if I see all of them center to heart. There is some validity but I will take hold opinion until I look into it further. Good article , thanks and we want more! Added to FeedBurner as well
Is this a custom designed blog? It's awesome
It seems like no one even takes the time to read the original blog post before posting a comment. Very lazy, people.
Real excellent info can be found on website .
Excellent blog! Plenty of helpful information here. I was looking for this.Thanks for sharing! appartement grece
I have realized that car insurance businesses know the automobiles which are liable to accidents and also other risks. Additionally, these people know what kind of cars are given to higher risk as well as the higher risk they've got the higher the premium charge. Understanding the simple basics involving car insurance can help you choose the right types of insurance policy that could take care of your wants in case you happen to be involved in an accident. Thank you sharing a ideas with your blog.
Today, while I was at work, my cousin stole my iphone and tested to see if it can survive a twenty five foot drop, just so she can be a youtube sensation. My iPad is now destroyed and she has 83 views. I know this is entirely off topic but I had to share it with someone!
Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.
Many friends of mine talk about your blog anytime, and now I am here. After read a couple of your post, I must say that it's really great
An excellent article many thanks
Valuable information and excellent design you got here! I would like to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up!
Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.
With every thing which seems to be developing inside this specific subject matter, all your points of view are generally very exciting. Having said that, I am sorry, because I do not subscribe to your whole plan, all be it radical none the less. It appears to everybody that your comments are actually not entirely justified and in actuality you are generally yourself not fully confident of your point. In any event I did take pleasure in reading it.
Precisely what I was looking for, thanks for putting up. "Every failure is a step to success..." by William Whewell.
All is fair in love and war. I guess that's why so many are wounded.
I agree with your lftpã®mirrorãŒæ™‚々ã†ã¾ã機能ã—ãªã„ç½ - WEB系エンジニアã®å‚™å¿˜éŒ², wonderful post.
I agree with your lftpã®mirrorãŒæ™‚々ã†ã¾ã機能ã—ãªã„ç½ - WEB系エンジニアã®å‚™å¿˜éŒ², excellent post.
Salut Selon moi les opinions de ce petit article doivent offir d'avantage de avis... Votre idée peut sembler correcte or je ne defend pas les autres posts postés ici. Pensez a compléter des sources pour plus de crédibilité! Merci
I gotta favorite this website it seems extremely helpful extremely helpful
Definitely believe debt reliefthat which you said. Your favorite reason appeared to be on the web the easiest factor to take into accout of. I say to you, I certainly get irked at the same time as other folks think about worries that they just do not recognise about. You managed to hit the nail upon the top and also outlined out the entire thing without having side-effects , other folks can take a signal. Will likely be again to get more. Thank you!
I'm nonetheless learning from you, however I'm bettering myself. I actually love studying all the pieces that is written in your blog.Preserve the tales coming. I cherished it!
This one is an inspiration personally to uncover out rather more related to this subject. I must confess your data extended my sentiments in addition to I'm going to right now take your feed to remain up to date on every coming blog posts you may probably create. You might be worthy of thanks for a job perfectly done!
Puritans will never believe it, but life is full of disagreeable things that aren't even good for you. ~Mignon McLaughlin, The Second Neurotic's Notebook, 1966
You should take part in a contest for among the best blogs on the web. I will advocate this web site!
When I originally left a comment I clicked the notify me when new remarks are added and now each time a opinion is added I get many email messages with similar comment. Will there be any way you'll be able to remove folks by that service? Thanks a lot!
I’m impressed, I must say. Actually rarely do I encounter a blog that’s each educative and entertaining, and let me tell you, you will have hit the nail on the head. Your thought is outstanding; the issue is one thing that not sufficient individuals are speaking intelligently about. I’m very happy that I stumbled across this in my seek for something relating to this.
You can certainly see your skills in the paintings you write. The sector hopes for even more passionate writers such as you who are not afraid to mention how they believe. Always follow your heart.
Je peux vous en transmettre les adresses pour toujours plus d'images en relation avec cet objet. Joignez moi par email!
Ein Anbieter Preis Vergleich erstellen. Es kann sich durchaus lohnen.
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. It extremely helps make reading your blog significantly easier.
Thank you for another excellent posting. Where else can any person get that form of facts in composed in such a crystal clear way. I've a presentation next week, and I had been on the look out for exactly the advice you've got just given me. Bless you.
God gave us love. He lent us the rest.
À quoi bon ne pas rapporter les significations expliquées la semaine passées par le parti national? Au minimum on serait capable de discuter selon les véritables valeurs;
At this time it appears like Wordpress is the preferred blogging platform available right now. (from what I've read) Is that what you are using on your blog?
You have brought up a quite amazing details , thanks for the post.
Je peux vous en transférer les url pour de nouvelles de clichés sur cet idée. Contactez moi par mail.
Certainly very interesting post. In all cases I will try what is written here to pursue. greeting
Truth isn't always beauty, but the hunger for it is.
I was looking through StumbleUpon for websites on this very issue so I really appreciate your well written article. I enjoyed your writing type and have subscribed to your feed so I can read future articles on this and other matters.