{"id":56760,"date":"2020-04-07T05:56:35","date_gmt":"2020-04-06T21:56:35","guid":{"rendered":"http:\/\/4563.org\/?p=56760"},"modified":"2020-04-07T05:56:35","modified_gmt":"2020-04-06T21:56:35","slug":"%e8%90%8c%e6%96%b0%e6%b1%82%e9%97%ae%e3%80%90%e9%98%bf%e9%87%8c%e4%ba%91%e6%90%ad%e5%bb%babitwarden%e3%80%91%e5%90%8edropbox%e5%a4%87%e4%bb%bd%e6%98%af%e7%a9%ba%e7%9a%84","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=56760","title":{"rendered":"\u840c\u65b0\u6c42\u95ee\u3010\u963f\u91cc\u4e91\u642d\u5efabitwarden\u3011\u540edropbox\u5907\u4efd\u662f\u7a7a\u7684"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>rapeseed<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u840c\u65b0\u6c42\u95ee\u3010\u963f\u91cc\u4e91\u642d\u5efabitwarden\u3011\u540edropbox\u5907\u4efd\u662f\u7a7a\u7684<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 rapeseed \u4e8e 2020-4-4 13:37 \u7f16\u8f91 <\/p>\n<p> \u5df2\u89e3\u51b3\uff0c\u611f\u8c22\u5927\u4f6c\u76f8\u52a9~ \u5c24\u5176\u611f\u8c22@laoxong \u5927\u4f6c<br \/>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>  \u840c\u65b0\u6c42\u95eeeuserv\u5982\u4f55\u642d\u5efabitwarden\u5e76\u5b9e\u73b0\u81ea\u52a8\u5907\u4efd\uff0c<br \/>  \u6298\u817e\u4e86\u4e00\u5929\u4e86\uff0c\u8fd8\u662f\u6ca1\u80fd\u642d\u5efa\u6210\u529f\uff0cbt\u5b89\u4e0d\u4e0a\uff0cdocker\u4e5f\u5b89\u4e0d\u4e0a\u3002\u3002<br \/>  \u4ee5\u4e0a\u5185\u5bb9\u5df2\u5e9f\u5f03<br \/>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\u540e\u7eed&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>  \u6210\u529f\u7528\u963f\u91cc\u4e91\u5b89\u88c5\u4e0a\u4e86\u3002<br \/>  \u4f46\u662f\u5728\u6298\u817edropbox \u538b\u7f297z\u5907\u4efd\u7684\u65f6\u5019\uff0c<br \/>  \u4e0a\u4f20\u5230dropbox\u7684\u662f\u7a7a\u7684\u538b\u7f29\u5305\u3002<br \/>  \u6c42\u5927\u4f6c\u89e3\u51b3\u3002<br \/>  \u53c2\u8003\u7684\u811a\u672c\u662f<br \/>  https:\/\/www.moec.top\/archives\/285<br \/>  \u7684backup.sh<br \/>  \u811a\u672c\u4fe1\u606f\u5982\u4e0b#Funciont: Backup website and mysql database<br \/>  #Author: licess<br \/>  #Website: https:\/\/lnmp.org<\/p>\n<p>  Bit_name=&quot;bitwarden&quot;<br \/>  dropboxshell_dir=&quot;\/usr\/local\/backup\/dropbox_uploader.sh&quot;<br \/>  drop_dir=\/${Bit_name}\/$(date +&quot;%Y%m%d%H&quot;)<br \/>  password=&quot;password&quot;<\/p>\n<p>  #IMPORTANT!!!Please Setting the following Values!<br \/>  Zip_Dir=&quot;\/usr\/local\/bin\/7za&quot;<br \/>  Backup_Home=&quot;\/opt\/bitwarden\/&quot;<br \/>  ######~Set Directory you want to backup~######<br \/>  Backup_Dir=(&quot;\/usr\/local\/bitwarden&quot;)<\/p>\n<p>  #Values Setting END!<\/p>\n<p>  OldBackup=${Bit_name}$(date -d -7day +&quot;%Y%m%d%H&quot;).7z<br \/>  Old_DROPBOX_DIR=\/${Bit_name}\/$(date -d -30day +&quot;%Y%m%d%H&quot;)<br \/>  Backup_Dir=()<br \/>  {<br \/>  &nbsp; &nbsp; Backup_Path=$1<br \/>  &nbsp; &nbsp; Dir_Name=`echo ${Backup_Path##*\/}`<br \/>  &nbsp; &nbsp; Pre_Dir=`echo ${Backup_Path}|sed &#8216;s\/&#8217;${Dir_Name}&#8217;\/\/g&#8217;`<br \/>  &nbsp; &nbsp; tar zcf ${Backup_Home}bit-${Dir_Name}-$(date +&quot;%Y%m%d%H&quot;).tar.gz -C ${Pre_Dir} ${Dir_Name}<br \/>  }<\/p>\n<p>  if [ ! -f ${MySQL_Dump} ]; then<br \/>  &nbsp; &nbsp; echo &quot;mysqldump command not found.please check your setting.&quot;<br \/>  &nbsp; &nbsp; exit 1<br \/>  fi<\/p>\n<p>  if [ ! -d ${Backup_Home} ]; then<br \/>  &nbsp; &nbsp; mkdir -p ${Backup_Home}<br \/>  fi<\/p>\n<p>  echo &quot;Backup bitwarden files&#8230;&quot;<br \/>  for dd in ${Backup_Dir[@]};do<br \/>  &nbsp; &nbsp; Backup_Dir ${dd}<br \/>  done<\/p>\n<p>  echo &quot;compass with 7z&#8230;&quot;<br \/>  ${Zip_Dir} a -mhe -p${password} ${Backup_Home}${Bit_name}$(date +&quot;%Y%m%d%H&quot;).7z ${Backup_Home}bit-${Dir_Name}-$(date +&quot;%Y%m%d%H&quot;).tar.gz<br \/>  rm -rf ${Backup_Home}bit-${Dir_Name}-$(date +&quot;%Y%m%d%H&quot;).tar.gz<\/p>\n<p>  echo &quot;upload to dropbox&#8230;&quot;<br \/>  ${dropboxshell_dir} upload $Backup_Home\/${Bit_name}$(date +&quot;%Y%m%d%H&quot;).7z $drop_dir\/${Bit_name}$(date +&quot;%Y%m%d%H&quot;).7z<br \/>  ${dropboxshell_dir} delete $Old_DROPBOX_DIR<\/p>\n<p>  echo &quot;Delete old backup files&#8230;&quot;<br \/>  rm -f ${Backup_Home}${OldBackup}<\/p>\n<p>  \u62a5\u9519\u4fe1\u606f\u5982\u4e0b \u6839\u636e\u62a5\u9519\u662f\u6b63\u5219\u5f0f\u95ee\u9898\uff1f\u3002\u3002\u4f46\u662f\u6211\u4e0d\u77e5\u9053\u6539\u54ea\u3002\u3002<br \/>  # \/usr\/local\/backup\/backup.sh<br \/>  sed\uff1a-e \u8868\u8fbe\u5f0f #1\uff0c\u5b57\u7b26 0\uff1a\u524d\u9762\u6ca1\u6709\u6b63\u5219\u8868\u8fbe\u5f0f<br \/>  tar: \u9009\u9879\u9700\u8981\u53c2\u6570 &#8212; &quot;C&quot;<br \/>  \u8bf7\u7528\u201ctar &#8211;help\u201d\u6216\u201ctar &#8211;usage\u201d\u83b7\u5f97\u66f4\u591a\u4fe1\u606f\u3002<br \/>  Backup bitwarden files&#8230;<br \/>  compass with 7z&#8230;<\/p>\n<p>  7-Zip (a)  16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21<br \/>  p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU x64)<\/p>\n<p>  Open archive: \/opt\/bitwarden\/bitwarden2020040412.7z<br \/>  &#8212;<br \/>  Path = \/opt\/bitwarden\/bitwarden2020040412.7z<br \/>  Type = 7z<br \/>  Physical Size = 32<br \/>  Headers Size = 0<br \/>  Solid = &#8211;<br \/>  Blocks = 0<\/p>\n<p>  Scanning the drive:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  WARNING: No more files<br \/>  \/opt\/bitwarden\/bit&#8211;2020040412.tar.gz<\/p>\n<p>  0 files, 0 bytes<\/p>\n<p>  Updating archive: \/opt\/bitwarden\/bitwarden2020040412.7z<\/p>\n<p>  Items to compress: 0<\/p>\n<p>  &nbsp; &nbsp; <br \/>  Files read from disk: 0<br \/>  Archive size: 32 bytes (1 KiB)<\/p>\n<p>  Scan WARNINGS for files and folders:<\/p>\n<p>  \/opt\/bitwarden\/bit&#8211;2020040412.tar.gz : No more files<br \/>  &#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>  Scan WARNINGS: 1<br \/>  upload to dropbox&#8230;<br \/>  which: no shasum in (\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/root\/bin)<br \/>   &gt; Uploading &quot;\/opt\/bitwarden\/bitwarden2020040412.7z&quot; to &quot;\/bitwarden\/2020040412\/bitwarden2020040412.7z&quot;&#8230; DONE<br \/>   &gt; Deleting &quot;\/bitwarden\/2020030512&quot;&#8230; FAILED<br \/>  Some error occured. Please check the log.<br \/>  Delete old backup files&#8230;  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mmmmmiku<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\trapeseed \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-4 00:28<br \/>  \u5927\u4f6c\u5728\u5417\uff0c\u6211\u7528\u963f\u91cc\u4e91\u5230\u6700\u540e\u7684\u5907\u4efd\uff0c\u51fa\u73b0\u4e86\u4e00\u4e2a\u95ee\u9898\u3002<br \/>  \u5907\u4efd\u4e0a\u53bb\u7684\u538b\u7f29\u5305\u662f\u7a7a\u7684\u538b\u7f29\u5305\u3002\u6ca1\u6709\u6570\u636e\u3002\u3010\u6211\u5df2 &#8230;<\/p>\n<p> \u811a\u672c\u7684\u53c2\u6570\u8981\u6839\u636e\u4f60bitwarden\u6570\u636e\u7684\u5b58\u653e\u4f4d\u7f6e\u4fee\u6539\uff0c\u6539\u5b8c\u4f60\u53ef\u4ee5\u68c0\u67e5\u4f60\u672c\u5730\u7684\u5907\u4efd\u6587\u4ef6\u662f\u5426\u6b63\u786e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>laoxong<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\trapeseed \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-4 00:28<br \/>  \u5927\u4f6c\u5728\u5417\uff0c\u6211\u7528\u963f\u91cc\u4e91\u5230\u6700\u540e\u7684\u5907\u4efd\uff0c\u51fa\u73b0\u4e86\u4e00\u4e2a\u95ee\u9898\u3002<br \/>  \u5907\u4efd\u4e0a\u53bb\u7684\u538b\u7f29\u5305\u662f\u7a7a\u7684\u538b\u7f29\u5305\u3002\u6ca1\u6709\u6570\u636e\u3002\u3010\u6211\u5df2 &#8230;<\/p>\n<p> \u8def\u5f84\u5bf9\u4e86\u6ca1<br \/>  \u914d\u7f6e\u6587\u4ef6\u7684 Backup_Dir=(&quot;\/usr\/local\/bitwarden&quot;)<br \/>  \u770b\u770b\u5199\u5bf9\u6ca1\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>laoxong<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thttps:\/\/www.moec.top\/?s=bitwarden<br \/>  \u81ea\u5df1\u770b\uff0czsbd\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>laoxong<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\trapeseed \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-4 13:24<br \/>  \u5728\/usr\/local\/\u76ee\u5f55\u4e0b\u6ca1\u6709bitwarden\u6587\u4ef6\u5939<\/p>\n<p> \u597d\uff0c\u6210\u529f\u5199\u53cd\u4e86<br \/>  Backup_Dir= \u8fd9\u4e2a\u662f\u8981\u5907\u4efd\u7684\u76ee\u5f55<br \/>  Backup_Home= \u8fd9\u4e2a\u662f\u4fdd\u5b58\u7684\u76ee\u5f55\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Sheldonliu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u628a\u5bc6\u7801\u653e\u5230\u514d\u8d39\u7684\u673a\u5b50\u4e0a\u4e0d\u5b89\u5168\u5427<br \/>  \u22b1\u22b1\u22b1 \u529b\u62d4\u5c71\u516e\u6c14\u76d6\u4e16\uff0c\u65f6\u4e0d\u5229\u516e\u9a93\u4e0d\u901d\u3002\u2014\u2014\u9879\u7fbd\u300a\u5793\u4e0b\u6b4c\u300b\u22b0\u22b0\u22b0\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u659c\u9633\u665a\u66ae<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u659c\u9633\u665a\u66ae \u4e8e 2020-4-2 15:22 \u7f16\u8f91 <\/p>\n<p> \u4f60\u8fd8\u4e0d\u5982\u76f4\u63a5\u7528\u5b98\u65b9\u5f97\u3002<br \/>  docker\u672c\u8eab\u5c31\u4e0d\u80fd\u5b89\u88c5\u3002<br \/>  bt\u7528ipv6\u7684\u7248\u672c\u3002\u4f60\u4eec\u4e0d\u80fd\u5b89\u88c5\u4e0a\uff0c\u4e0d\u77e5\u9053\u600e\u4e48\u56de\u4e8b\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c0f\u65ed<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u659c\u9633\u665a\u66ae \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-2 15:20<br \/>  \u4f60\u8fd8\u4e0d\u5982\u76f4\u63a5\u7528\u5b98\u65b9\u5f97\u3002<br \/>  docker\u672c\u8eab\u5c31\u4e0d\u80fd\u5b89\u88c5\u3002<br \/>  bt\u7528ipv6\u7684\u7248\u672c\u3002\u4f60\u4eec\u4e0d\u80fd\u5b89\u88c5\u4e0a\uff0c\u4e0d\u77e5\u9053\u600e\u4e48\u56de\u4e8b\u3002 &#8230;<\/p>\n<p> \u60f3\u4e86\u60f3\u53d1\u73b0\u4e0d\u7a33\u5b9a \u6ca1\u7528 \u76f4\u63a5\u7528latpass\u4e0d\u9999\u561b\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u659c\u9633\u665a\u66ae<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5c0f\u65ed \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-2 15:23<br \/>  \u60f3\u4e86\u60f3\u53d1\u73b0\u4e0d\u7a33\u5b9a \u6ca1\u7528 \u76f4\u63a5\u7528latpass\u4e0d\u9999\u561b\uff1f<\/p>\n<p> \u4ec0\u4e48\u65f6\u5019\u628a\u4e2d\u6587\u5f04\u56de\u6765\u518d\u8003\u8651\u3002<br \/>  \u770b\u4e0d\u770b\u61c2\u54ea\u51e0\u4e2a\u82f1\u6587\u9009\u9879\u662f\u6b21\u8981\uff0c\u788d\u773c\u662f\u4e3b\u8981\u7684\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>microlz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tlxc\u865a\u62df\u5316\u8dd1\u4e0d\u4e86docker\u5427\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u897f\u5317\u8001\u6c49<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tlastpass<br \/>  1password<br \/>  \u4e0d\u9999\u5417\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cherbim<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tbt\u7528ipv6\u7279\u4f9b\u7248\u5b89\u88c5\uff08\u5148\u8bbe\u7f6e\u597dDNS64\uff09\uff0c\u81f3\u4e8edocker\uff0c\u4e0d\u8981\u60f3\u4e86\uff0clxc\u5c31\u662f\u5bb9\u5668\u865a\u62df\u5316\uff0c\u4e0d\u80fd\u7528docker\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>future<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5728\u514d\u8d39\u673a\u4e0a\u642d\uff0c\u8fd8\u4e0d\u5982\u53bb\u7528\u5b98\u65b9\u7684\uff0c\u5b98\u65b9\u7684\u8fd8\u66f4\u52a0\u6709\u4fdd\u8bc1\u4e9b<br \/>  \u90a3\u4e2a\u514d\u8d39\u673a\u8bf4\u4e0d\u5b9a\u54ea\u5929\u5c31\u5931\u8054\u4e86\uff0c\u4f60\u7684\u5bc6\u7801\u5c31\u5168\u6ca1\u4e86<br \/>  \u4e4b\u524d\u6211\u5c31\u8bd5\u8fc7\u5931\u8054\u4e86\uff0c\u597d\u5728\u53ea\u662f\u5728\u4e0a\u9762\u642d\u4e86\u4e2awordpress\uff0c\u53ea\u80fd\u91cd\u88c5\u7cfb\u7edf\uff0c\u6570\u636e\u90fd\u6ca1\u4e86\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>rapeseed \u5927\u4f6c\u6709\u8bdd\u8bf4 : &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/56760"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56760"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/56760\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56760"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}