Files
nexus/wiki/sources/Ubuntu服务器通过rsync实现日常增量备份.md
weishen f9ac3145ab feat(wiki): ingest remaining subdirectories batch (51 files)
- Others: ChinaTextbook, Obsidian笔记系列, YouTube Channel ID, TikTok PM Django
- Skills: GOG CLI, Last30Days, baoyu-skills
- Vibe Coding: Cursor 2.0, Trae远程开发, Vibe-Kanban+OpenCode, vibe coding经验
- 微信公众号: 养虾日记1-5, AI时代赚钱
- 跨境电商: TikTok数据抓取, 选品策略, Superset Dashboard
- AI目录补充: 20个文件

Source pages: 51
Entities: TapXWorld, VibeKanban, OpenCode, Trae, SourceGrounding等
Concepts: 自举Meta生成, 5大设计原则, MD5去重, 混合搜索等
2026-04-14 20:48:34 +08:00

46 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Ubuntu服务器通过rsync实现日常增量备份"
type: source
tags: [rsync, ubuntu, 备份, nas, 增量备份]
date: 2025-12-20
---
## Source File
- [[raw/Home Office/Ubuntu服务器通过rsync实现日常增量备份.md]]
## Summary
- 核心主题:使用 rsync 实现 Ubuntu 服务器到 NAS 的增量日常备份
- 问题域:数据保护与灾难恢复
- 方法/机制rsync 脚本配合 cron 定时任务,通过 NFS 挂载的 NAS 目录作为备份目标
- 结论/价值:构建"工作室级"数据保护体系凌晨自动执行NAS 掉线时安全终止备份
## Key Claims
- rsync 脚本使用 -azR --delete 参数,排除 venv/__pycache__/.git 目录
- 通过 lockfile 机制防止并发执行同一备份任务
- NFS 永久挂载通过 /etc/fstab 配置,使用 _netdev 参数确保网络就绪后再挂载
- 数据库备份建议先用 docker exec + mysqldump 导出 SQL再由 rsync 同步
- rsync 错误码 23/24 表示部分文件因权限问题未传输,属于正常情况
- 可通过 screen/tmux 或 nohup 后台运行备份脚本
## Key Quotes
> "_netdev告诉系统这是一个网络设备务必等到网络服务完全启动后再尝试挂载" — /etc/fstab NFS 挂载的关键参数
## Key Concepts
- [[rsync]]:增量文件同步工具
- [[NFS]]:网络文件系统
- [[增量备份]]:仅同步变化文件
- [[Cron]]:定时任务调度
- [[Lockfile]]:防止并发执行的锁机制
## Key Entities
- [[Ubuntu]]:源服务器操作系统
- [[Synology NAS]]:备份目标存储
## Connections
- [[Ubuntu]] ← backs_up_to ← [[Synology NAS]]
- [[rsync]] ← scheduled_by ← [[Cron]]
- [[NFS]] ← mounted_on ← [[Ubuntu]]
## Contradictions
-