Gitlab自动备份到NAS共享目录

1,挂载NAS共享目录。编辑 /etc/fstab,添加一行:\\nas’s IP\share-dir /mnt/backups cifs credentials=/home/user/Download/secret.txt,uid=git,git=git 0 0

secret.txt添加如下信息:

username=

password=

之后mount -a手动挂载,之后会因为写入到了fstab而自动挂载

2,修改Gitlab备份路径。编辑 /etc/gitlab/gitlab.rb 文件,添加如下内容 (https://docs.gitlab.com/ee/raketasks/backup_restore.html#specifying-a-custom-directory-for-backups):

gitlab_rails['backup_upload_connection'] = {
  :provider => 'Local',
  :local_root => '/mnt/backups'
}

# The directory inside the mounted folder to copy backups to
# Use '.' to store them in the root directory
gitlab_rails['backup_upload_remote_directory'] = 'gitlab_backups'

gitlab_rails['backup_archive_permissions'] = 0644 # Makes the backup archives world-readable

# limit backup lifetime to 7 days - 604800 seconds
gitlab_rails['backup_keep_time'] = 604800

sudo gitlab-ctl reconfigure

3. 使用Crontab执行自动备份。注意12.0版本以下的备份命令和12.0版本以上的不同。

sudo su -
crontab -e

或者:sudo crontab -e

0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1

参考文档:https://hisoka0917.github.io/git/2017/12/19/gitlab-backup/

https://docs.gitlab.com/12.10/omnibus/settings/backups.html

本地以图搜图软件

网页版的以图搜图很多,比如Google,Baidu等都有,拖入一张图片,它可以帮忙搜索相似的图片出来。

但是本地的以图搜图软件却很少见。

1,嗅图狗,https://blog.csdn.net/sinat_27382047/article/details/95879954,https://github.com/naturalcaduceus/picSniffer

2,Visual Similarity Duplicate Image Finder,https://www.mindgems.com/products/VS-Duplicate-Image-Finder/VSDIF-Tutorials.htm?postinstall=1

3,Milvus,自己搭建。https://github.com/milvus-io/milvus

How to install IIAB

Internet-in-a-Box (IIAB) 7.2 pre-releases can be installed from this page.

Please read our DRAFT IIAB 7.2 Release Notes.  To install IIAB 7.2 onto
Raspberry Pi OS, Ubuntu 20.04, Linux Mint 20 or Debian 10, run this
1-line installer:

               curl d.iiab.io/install.txt | sudo bash

OS TIPS & TRICKS: click the above link (that ends in .txt) for important
recommendations on how to PREPARE & SECURE YOUR OS.

WARNING: NOOBS IS *NOT* SUPPORTED, as its partitioning is very different.
On a Raspberry Pi, WE RECOMMEND YOU INSTALL THE LATEST RASPBERRY PI OS.
To attempt IIAB 7.2 on another Linux see the full/manual instructions.

An Ethernet cable is HIGHLY RECOMMENDED during installation, as this is more
reliable than Wi-Fi (and faster too!)  WARNING: IF YOU CONNECT YOUR IIAB'S
INTERNAL WIFI TO THE INTERNET OVER 5 GHz, YOU'LL PREVENT OLDER LAPTOPS/
PHONES/TABLETS (WHICH REQUIRE 2.4 GHz) FROM CONNECTING TO YOUR IIAB'S
INTERNAL HOTSPOT.  See: "wifi_up_down: True" in /etc/iiab/local_vars.yml

        Thanks For Building Your Own Library To Serve One & All

Write to bugs @ iiab.io if you find issues, Thank You!  Special Thanks to the
countries+communities+volunteers working non-stop to bring about IIAB 7.2!

IIAB Development Team
http://FAQ.IIAB.IO

Windows 10 拷贝粘贴经常失灵

不是键盘的问题。

重启Explorer也不起作用。

重启rdpclip.exe更是没用。

有些说有道词典会有冲突,可是我并没有安装它。

后面试着关闭VirtualBox的虚拟机,竟然可以了?下次再确认。

网上下载了一个Cliplock的查看粘贴板占用的软件,查并无其他程序占用了粘贴进程。