{"id":55310,"date":"2020-04-02T18:42:29","date_gmt":"2020-04-02T10:42:29","guid":{"rendered":"http:\/\/4563.org\/?p=55310"},"modified":"2020-04-02T18:42:29","modified_gmt":"2020-04-02T10:42:29","slug":"%e4%b8%8d%e6%87%82%e5%b0%b1%e8%a6%81%e9%97%ae-%e9%82%a3%e4%bd%8d%e5%a4%a7%e4%bd%ac%e5%86%99%e4%b8%aabitwarden%e5%a4%87%e4%bb%bd%e5%8a%a0%e5%af%86%e5%95%8a","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=55310","title":{"rendered":"\u4e0d\u61c2\u5c31\u8981\u95ee \u90a3\u4f4d\u5927\u4f6c\u5199\u4e2abitwarden\u5907\u4efd\u52a0\u5bc6\u554a"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u5c0f\u7a74\u513f<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 22:59:24\t<\/p>\n<h3>\u4e0d\u61c2\u5c31\u8981\u95ee \u90a3\u4f4d\u5927\u4f6c\u5199\u4e2abitwarden\u5907\u4efd\u52a0\u5bc6\u554a<\/h3>\n<p>  \t\t\u90a3\u4f4d\u5927\u4f6c\u5199\u4e2abitwarden\u5907\u4efdsqlite3\u6587\u4ef6\u6253\u5305\u538b\u7f29\u5305\u5e76\u52a0\u5bc6\u554a\uff0c\u6c42\u5927\u4f6c \u5c0f\u767d\u5565\u4e5f\u4e0d\u4f1a\u554a\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mmmmmiku<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:53:08\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53ef\u4ee5\u7528\u6211\u6539\u7684\u8fd9\u4e2a\uff0c\u8981\u5907\u4efd\u5230OD\u548cGD\u81ea\u5df1\u6539\u7528rclone<br \/>  OD\u4e5f\u53ef\u4ee5\u7528Onedriveuploader<\/p>\n<p>  #!\/bin\/bash<\/p>\n<p>  #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;wwwwwwww&quot;<\/p>\n<p>  #IMPORTANT!!!Please Setting the following Values!<br \/>  Zip_Dir=&quot;\/usr\/local\/bin\/7za&quot;<br \/>  Backup_Home=&quot;\/usr\/local\/backup\/&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;)<\/p>\n<p>  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}  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u59ec\u957f\u4fe1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:00:38\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u95ee\u9898\u6765\u4e86\uff1a\u5565\u662fbit\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c0f\u7a74\u513f<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:04:33\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u59ec\u957f\u4fe1 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:00<br \/>  \u95ee\u9898\u6765\u4e86\uff1a\u5565\u662fbit<\/p>\n<p> \u5927\u4f6c\u3002\u3002\u5b58\u5bc6\u7801\u7684\u554a\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Zeros<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:05:06\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u59ec\u957f\u4fe1 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:00<br \/>  \u95ee\u9898\u6765\u4e86\uff1a\u5565\u662fbit<\/p>\n<p> \u5f00\u6e90\u7684\u5bc6\u7801\u7ba1\u7406\u5668\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>184682563<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:05:58\t<\/p>\n<h3><\/h3>\n<p>  \t\tbit_rs\u5427\uff1f\u5efa\u8bae\u770b\u5b98\u65b9\u6587\u6863\uff0c\u5199\u5f97\u633a\u6e05\u695a\u7684\u4e86\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>countonher<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:06:54\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5f88\u5bb9\u6613\uff0crclone\u914d\u5408\u5f00\u6e90\u5907\u4efd\u8f6f\u4ef6\u52a0\u5bc6\u5907\u4efd\uff0ccrontab\u64cd\u4f5c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c0f\u7a74\u513f<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:09:09\t<\/p>\n<h3><\/h3>\n<p>  \t\tcountonher \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:06<br \/>  \u5f88\u5bb9\u6613\uff0crclone\u914d\u5408\u5f00\u6e90\u5907\u4efd\u8f6f\u4ef6\u52a0\u5bc6\u5907\u4efd\uff0ccrontab\u64cd\u4f5c<\/p>\n<p> \u5927\u4f6c \u63a8\u8350\u4e2a\u5907\u4efd\u8f6f\u4ef6\u554a\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c0f\u7a74\u513f<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:10:41\t<\/p>\n<h3><\/h3>\n<p>  \t\t184682563 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:05<br \/>  bit_rs\u5427\uff1f\u5efa\u8bae\u770b\u5b98\u65b9\u6587\u6863\uff0c\u5199\u5f97\u633a\u6e05\u695a\u7684\u4e86\u3002<\/p>\n<p> \u5b98\u65b9\u7684\u6ca1\u770b\u5230\u52a0\u5bc6\u7684 \u53ea\u80fd\u81ea\u5df1\u624b\u52a8\u52a0\u5bc6 \u6211\u61d2\u554a \u5927\u4f6c\u4eec\u5199\u4e2a\u4e00\u952e\u591a\u597d\uff0c\u5bf9\u5427\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>countonher<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:13:11\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5c0f\u7a74\u513f \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:09<br \/>  \u5927\u4f6c \u63a8\u8350\u4e2a\u5907\u4efd\u8f6f\u4ef6\u554a\u3002\u3002<\/p>\n<p> restic,borg\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>luceos<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-31 23:21:09\t<\/p>\n<h3><\/h3>\n<p>  \t\thttps:\/\/www.hostloc.com\/thread-667054-1-1.html \u8fd9\u7bc7\u6587\u7ae0\u89e3\u51b3\u4e0d\u4e86\u5417\uff1f\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u7a74\u513f \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-&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\/55310"}],"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=55310"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/55310\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55310"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}