相关疑难解决方法(0)

使用 rsync 备份您的主目录并跳过无用文件夹

您可以轻松地在外部硬盘驱动器上备份您的主文件夹

rsync -a --exclude=.cache --progress /home/$USER /media/linuxbackup/home/$USER
Run Code Online (Sandbox Code Playgroud)

我排除了 .cache 文件夹,因为我认为当我必须从这个备份重新安装时我永远不需要它。

我在这里找到了可以在普通备份中排除的所有文件夹的列表:
可以从主目录的备份中排除哪些文件和目录?

我创建了此答案的列表,其中包含以下形式的一些评论:

#These directories may be excluded:

.gvfs                           # contains mounted file systems?
.local/share/gvfs-metadata
.Private                        # contains the actual encrypted home directory
.dbus                           # session-specific
.cache
.Trash                          # do I need to say more?
.local/share/Trash
.cddb                           # cached info about audio CDs
.aptitude                       # cached packages lists

#Flash-specific:

.adobe                          # Cache for flash, maybe others?
.macromedia   # except for Flash persistence, there is no reason to keep this

#Files: …
Run Code Online (Sandbox Code Playgroud)

backup rsync

32
推荐指数
2
解决办法
8万
查看次数

在 ubuntu 上与 Unison 同步

我正在尝试使用 unison 同步两台 ubuntu 机器。不幸的是,这个程序的文档并不是很有帮助。也似乎没有一个既定的论坛。所以我希望这里有人用过它。

当我第一次同步时,使用最基本的语法

unison myHome ssh://root_to_remote//myHome
Run Code Online (Sandbox Code Playgroud)

即使我的个人资料说

auto = true
times = true
Run Code Online (Sandbox Code Playgroud)

我会收到有关文件系统中每个文件的提示,即使是大小相同、修改时间相同的文件。显然,我做错了什么,因为 unison 应该在最少的用户输入下工作。

我将不胜感激任何建议...

sync unison

3
推荐指数
1
解决办法
1540
查看次数

标签 统计

backup ×1

rsync ×1

sync ×1

unison ×1