我正在使用双重性来备份我的一些文件。关于包含/排除模式,手册页有点令人困惑。我想备份以下内容:
/storage/include
/otherthings
Run Code Online (Sandbox Code Playgroud)
但不是
/storage/include/exclude
Run Code Online (Sandbox Code Playgroud)
包含文件目前看起来:
+ /storage/include
- /storage/include/exclude
+ /otherthings
- **
Run Code Online (Sandbox Code Playgroud)
双重性被称为如下:
/usr/bin/duplicity --include-globbing-filelist /Path/to/file/above / target
Run Code Online (Sandbox Code Playgroud)
它根本行不通。每次备份时,它还包括 /storage/include/exclude 中的文件。
我正在索引一个 MySQL 表。它使那台计算机的负载很高。
这似乎是由于高iowait。但也说明wMB/s只有2.87。
连普通的SATA硬盘都不能处理超过2.87MB/s的吗?为什么过程这么慢呢?
iostat -x
报告:
avg-cpu: %user %nice %system %iowait %steal %idle
1.74 0.00 3.48 47.51 0.00 47.26
Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 300.00 0.00 383.00 0.00 2.87 15.35 142.00 374.64 2.61 99.90
sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sdc 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 …
Run Code Online (Sandbox Code Playgroud) 我想使用duplicity
.
因此,我创建根目录的备份/
,但不包括/proc
,/sys
,/tmp
,和/mnt
。
但是,尝试将备份还原到根目录时,出现以下错误:
Restore destination directory / already exists.
Will not overwrite.
Run Code Online (Sandbox Code Playgroud)
将--force
选项添加到命令后,我收到一系列[Errno 17]
错误,指出各种文件已经存在。
是否要恢复duplicity
备份,目标文件系统必须有足够的空间将恢复解压到临时目录?然后由用户来合并备份数据和现有系统?
我正在尝试监视 OSX 10 (iMac) 上进程的性能,特别是 I/O 当前是否是瓶颈。我不使用机器,因此我需要一些简单的东西,用户可以运行并报告我。
我发现top
在 OSX 终端上非常混乱:除非我是盲人,否则根本没有 IO 统计信息。获取机器当前 CPU iowait的最简单的内置命令是什么?
我正在尝试将两个命令(echo
和haml --check
)应用于我的find
.
haml --check `find . -name "*.haml"`
# return Syntax error on line 2: Illegal nesting: nesting within plain text is illegal.
# but I don't know which file
echo `find . -name "*.haml"`
# returns list of files (space separated)
Run Code Online (Sandbox Code Playgroud)
理想情况下,我想打印文件名,然后haml --check
在stdout
.