From 4e23e657e984788dbedfffdb616946aefe2fba48 Mon Sep 17 00:00:00 2001 From: dongdigua Date: Mon, 9 Jan 2023 18:07:16 +0800 Subject: [PATCH] new post: backup everything! --- images/usage_cockpit.png | Bin 0 -> 13267 bytes js/random-quote.js | 1 + org/backup_everything.org | 133 +++++++++++++++++++++++++++++++++++ org/internet_collections.org | 5 ++ org/publish_config.el | 1 + posts.md | 1 + 6 files changed, 141 insertions(+) create mode 100644 images/usage_cockpit.png create mode 100644 org/backup_everything.org diff --git a/images/usage_cockpit.png b/images/usage_cockpit.png new file mode 100644 index 0000000000000000000000000000000000000000..5724a2454efefa3277931ddfd34e94e2434c099f GIT binary patch literal 13267 zcmeHuby(Ejw*H_J1|SG3NC}974l(q=fQlf4ba&6d&^#=u zbl*Mt&2!HE-QRhhd;dE=j}G(s?7jBhYp=E5_g(61dD(}==cvy?AP{1t1`UBY506A@I5CxziJ#=3 zw8n(A0k4&~Kvp%8=E`+*r$zubkOvlx?OU=gbFDjmI&N``p4|?qTIB4u#&e2S*ZAj=_lL-M4b%?ci*T%$WXXQftihaA4L_%x1iQH`$ zMulsnb@Cnf+=i|hg{eg3mh6*6%MZJ>u~%A+Sni0W$4<+N*tKRnloLAYFvpg9?s+zv zPplL>yR^c;@aOetE*kmh+c3^@(_GdeajuFwPxReXWP{r7&8*-?q;;KM@JE&=_mZbB z7f5Gm-^Hx0#rpCGM9m$yTIbH*tZj;S?TlQknJ>@tbekzg@$hg2j1+YHEnFJH3OFIM znhQhv2ER(11gOe=PeKK&-oI>ASX=37!f0URm_HxeIemAr2clzTVrh2WS$510J)suY znb6HAu>`&ILm;3Wc6{ZQz4YONV_ZoPWufl#AJ-=ea>A@K(DqoN`8T1Nl7-fUV*rq_&~ zyO=StZmZMU?>*sn)i1r1%Vegv`)TH_xt5DjXoo{m*nHZj$XG+6Y)QU1m$f*f` z?iUGM!P)gT4{aYd4MMvpzjNu2a?f_ZM(*l61uw~oeLZ5nDI&4S^l?OKa7>H_e=m!H zly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J=ZH;UK%vYYT5NhvACN~h)Nsi`F3IY52C>acTh zDcH|-g4o}ho-{mKOioM7l8YCiMz|I=dig_kYwhRGB;lXGY`QjHpQ)bz?#9&{tatA8 zfoSG2XgHHK&&tXwB_;J4CwxP0%9(*88U=UEtO10m*8F1jNM?zWxH zu3MGf5zW6if*lKE24p=0)RP;!SfB{Zx)YuN?ug>`_%Zzn6t5zh8n>15IUekaHptSU z6#-B{0h7J8EnPSUAUg__!qjt=Y{Ktnz_(26n!RSTVH{J6jm=qFvH-27zKKgU!otEl zuA8PuYmKC`TdLl@&rNW8e#)O8rw4E}r>RLCs6PPOAjpg0GZmm}ffh+gOj8L61HkUv z>|Xo$d3OuDGCB&lpBdmxApRY{@7O!+y?@Wy5i6t? z!LCyfiJfS`Pf1Qrw;rp(R^QZ+m%r=0RPM5oYG`CcdFhhT)|HolK9XO$1Wm(^O)M|x z)YaW>>jJkh07S~2hzzAPv+=qos=X`Qc&FD)L!nx#^zLgG+dVF#;;A4RYi zFJZ!1SXd-L-+)c4B)g*u6lz=y1AbJ!`T3C)5}9As6%rSh3)&BD8W>y(g9c$Ss_k;+R8w=a8E7lI zE*B5rga+uT@{hUquDCG+mIn7auIm4Ewh6RQ0%QT!S=5OfEOAp^AZSah{TzN${rb|) zOjKLAW|eb3sO2cWXn=(Fz+iaU4%Vb=z4H@3!15nEI|CqScYe+Piqa;#<~ku+nHvhAjB^i0CVafta02!Z{lE3zkEbF&U@E=Wp|AB_#TFU<&x%#>K|6k7;^do-j zTK{uD;&%&wuJn7u;_r;`|Gky}ws&&Zx$OKuwm|;-CI9Z8I{Lbk)7JPXovnh^m$-lJ Og%p>4kb7VM>3;zgW0HIT literal 0 HcmV?d00001 diff --git a/js/random-quote.js b/js/random-quote.js index 9cb5ef7..3fde7a5 100644 --- a/js/random-quote.js +++ b/js/random-quote.js @@ -38,6 +38,7 @@ var data = [ "你说得对,但是《长安汽车》是由艺画开天自主研发的一款全新开放世界冒险游戏。", "Emacs has Evil, but Vim doesn't have Magit", "免费服务的代价就是你自己", + "Any fool can write code that a computer can understand.\nGood programmers write code that humans can understand.", ]; var index = Math.floor((Math.random() * data.length)); diff --git a/org/backup_everything.org b/org/backup_everything.org new file mode 100644 index 0000000..f305de2 --- /dev/null +++ b/org/backup_everything.org @@ -0,0 +1,133 @@ +#+TITLE: 一次大备份 +#+DATE: <2023-01-08 日> + +* My GREAT server board! +#+BEGIN_EXAMPLE +CPU: 6-core Intel Xeon E5645 +Mem: 8GiB +Graphics: + Device-1: AMD Juniper PRO [Radeon HD 6750] driver: radeon v: kernel + tty: 80x21 resolution: 1366x768 +BIOS: ami +机箱: 纸壳 +#+END_EXAMPLE +平常不开 CPU 风扇就 40 度, 开风扇 25 度 :) +但是这种 IO 密集型任务南桥会很烫烫烫, 所以还是开着 + +* Alpine? no +Alpine 是一个很好的发行版, 使用 "suck less" 的 musl 和 OpenRC +ps 看进程不到一页 +*但 是* +- 我开始使用 Linux 是 systemd 已经占领天下了, 所以使用的非常熟练, 而 OpenRC 没那么熟 +- vsftpd =500 OOPS child died= 解决不了 + +* Fedora ♥️ +所以我转回熟悉的 Fedora Server 了, 开箱即用, 安全 (SELinux), 稳定 +这些对于服务器来说是很重要的 + +至于 GUI 环境, 根本不用, tty 多美妙! +当然, 要用 =tmux= 做一些复杂的工作 + +Cockpit 有一处翻译有点搞笑 +[[../images/usage_cockpit.png]] + +* FTP? no +刚开始我想用 ftp, 因为 linux 下用的熟悉 +*但 是* +ftp 没法保存时间戳等元数据 +所以果断选择 Samba + +* Oops, SDcard broken! +我的第二张 SD 卡! +这张卡是用的最久的, 自从 2019 年下学期. +结果 有一个文件夹 =Input/Output Error= 了, 这也是预料到的, +毕竟经过了三个相机, 而且之前 Windows 上读就有些问题. +后来 testdisk 没完全修好, 还好坏的那个文件夹在别的盘有备份 +#+BEGIN_EXAMPLE +Warning: number of heads/cylinder mismatches 255 (FAT) != 64 (HD) +Warning: number of sectors per track mismatches 63 (FAT) != 32 (HD) + +Warning: the current number of heads per cylinder is 64 +but the correct value may be 32. +#+END_EXAMPLE + +** Oops, 128G USB drive broken! +这个救不了了, 完全无法读 + +* iPad +使用 =ifuse= 挂载. 注意, 如果想看到更多文件夹要手动挂载而不是文件管理器自动的(只能看到照片) +似乎我那个老主板 iPad 识别不着, 哈哈 +所以就远程 + +* HUAWEI 啊啊啊 +备份我妈的手机, 并不像之前那几个手机那么简单... +她自从换到华为之后, 相片都自动存的云, 她也不知道发生了什么. +然后前年, 空间不足. +这些云存储厂商都是, 想方设法引导你使用并且依赖他们的服务, 然后让你充钱! + +华为拍出来的图片都是带经纬度的, 吓人! +而我之前几个手机都没有这个 "贴心" 的功能 +#+BEGIN_QUOTE +It's the metadata, stupid +#+END_QUOTE + +手机相册里的图片, 有些是能看见, 但仔细看, 是云上的, 本地只有预览. +下呗, 一次不能超过 500个 或 1.75G +然后有些 zip 文件还是坏的: +#+BEGIN_EXAMPLE +Archive: foo.zip + End-of-central-directory signature not found. Either this file is not + a zipfile, or it constitutes one disk of a multi-part archive. In the + latter case the central directory and zipfile comment will be found on + the last disk(s) of this archive. +note: foo.zip may be a plain executable, not an archive +unzip: cannot find zipfile directory in one of foo.zip or + foo.zip.zip, and cannot find foo.zip.ZIP, period. +#+END_EXAMPLE + +后来发现 FireFox 似乎产生了 =.cache/.fr*= 一些缓存文件 (下载文件的完全拷贝) + +* Backup /home +家目录也得备份啦, 当前系统最重要的数据都在那. +当然先要排除一些垃圾或备份到其他地方的东西: +#+BEGIN_SRC shell +( .-.) +[~]── ─ cat rsync-exclude +minecraft +git +VirtualBox VMs +chroot +rpmbuild +kernel +.cache +.var +.cargo +.rustup +[~]── ─ rsync -avh --exclude-from=rsync-exclude --delete-excluded /home/digua DEST +#+END_SRC + +对于 git 目录比较特殊, 使用 CVS 忽略模式, 但保留每个 =.git= 目录: +#+BEGIN_SRC shell +rsync -avhC --delete-excluded --include .git /home/digua/git DEST +#+END_SRC + +* Change drive +我之前的那个 WD 金盘噪音和振动有点大, 我整个桌子都能感受到, +而且我那个盘没有使用分区表, 是直接在裸盘上创建的文件系统... +所以我准备换成一个更安静的东芝的盘用于日常备份运行, WD 的就用于同步备份那个盘. +所以现在第一次需要先把数据完全拷过去过去, 之后就可以 rsync 增量备份了. +先 =xfs_fsr= 减少一下碎片, 然后开始备份. +正常来说用 =dd= 就行了, 但是 dd 的缺点放大到 1T 的数据量上就是大问题: +*dd 也会拷贝空的部分* +emm... 有什么解决方案 +** [[https://serverfault.com/questions/439128/dd-on-entire-disk-but-do-not-want-empty-portion][serverfault: dd on entire disk, but do not want empty portion]] +这里主要讨论的是把磁盘剩余空间都填满 0, 然后再忽略/压缩 +不好! +** [[https://wiki.archlinux.org/title/Disk_cloning][ArchWiki: Disk cloning]] +提到了 Partclone "free-space aware" +*好!* +然后: =bad superblock=, 因为目标盘多了 2048 字节的分区表, 所以使用了危险的 =-C= 选项导致的 +** xfs_copy +也不行, 也是因为空间差那么一点 +** 那就 cp 直接来吧 + diff --git a/org/internet_collections.org b/org/internet_collections.org index 8ad1760..7fae5f5 100644 --- a/org/internet_collections.org +++ b/org/internet_collections.org @@ -232,6 +232,10 @@ int function(void) { ** [[http://ewontfix.com][EWONTFIX - a blog of bugs]] ** [[https://ifaceless.github.io/2019/11/17/guide-to-linux-scheduler/][论文学习之 Linux 调度器]] *** [[https://ifaceless.github.io/2019/10/30/linux-kernel-dev-notes/][Linux Kernel Development 学习与总结]] +** [[https://www.zxzyl.com][朱忠旭 blog]] +#+BEGIN_QUOTE +A biology dog in computer science, but also a coding dog in biology science. +#+END_QUOTE ** B *** [[https://shakaianee.top/][社会易姐]] @@ -333,6 +337,7 @@ inspiration: Veritasium =0x5f3759df= *** [[https://www.youtube.com/playlist?list=PLknodeJt-I5H_zK-udgi5XhhYrnDoLHkP][Gavin Freeborn: Commandline tools and tips]] *** [[https://youtu.be/CFRhGnuXG-4][Why You Shouldn't Nest Your Code]] +*** TODO [[https://youtu.be/crnEygp4C6g][FINALLY! A GPU works on the Raspberry Pi!]] ** [[https://www.youtube.com/@Computerphile][]] *** [[https://youtu.be/BAo5C2qbLq8][Network Time Protocol (NTP)]] diff --git a/org/publish_config.el b/org/publish_config.el index fdccbf2..04666e5 100644 --- a/org/publish_config.el +++ b/org/publish_config.el @@ -33,6 +33,7 @@ (add-to-list 'org-export-filter-final-output-functions 'html-body-id-filter) (setq org-html-validation-link nil + org-export-with-toc 1 org-export-with-sub-superscripts '{}) (setq org-html-postamble-format '(("en" diff --git a/posts.md b/posts.md index 0ceec55..b873d69 100644 --- a/posts.md +++ b/posts.md @@ -1,5 +1,6 @@ ## Table of Contents ### Posts (sorted by time) +- [一次大备份](backup_everything)
- [2023 了, 试试 emacs 29](emacs29_2023)
- [Fix TTY after Fedora 37 Upgrade](fix_tty)
- [狗日的腾讯会议](damn_tencent_meeting)