Linux系统备份:tar 、find
2013-08-16 15:43
274 查看
1、tar options <.tar> <file>-c 打包-x 解包-t 无出压缩包文件名-z gzip压缩-j bzip2压缩-v 显示压缩过程-f 后跟文件名-p 保留属性--exclude file 不包括-C 解包时,指定解压存放目录,打包时,指定tar存放目录 tar -cjf file.tar -C /tmp file1 file2 file3 tar -xjf file.tar -C ~/2、findfind path options -print(默认输出至屏幕,-print省略)find path options -exec command {} \; (或-ok)find path options | xargs commandoptions-name | -perm | -user | -group | -nogroup | -nouser # 易懂、常用,未解释-mtime -n,+n 修改时间,文件内容变化 -n 3 # 3天以内-atime -n,+n 访问时间 +n 3 # 3天以前-ctime -n,+n 状态时间,文件属性变化-prune 忽略指定目录-size 文件大小-depth 查找时,进行某一子目录时,先查完本目录-newer 按更改时间来比较-fstype 某一类型文件系统内的文件-type b d c p l f 文件类型-mount 不跨文件系统-follow 如遇符号链接,跟踪到原文件3、tar、find组合实现系统备份
相关文章推荐
- 利用tar备份linux系统详解
- 详解用tar备份Linux系统的方法及与Clonezilla备份的优缺点
- 使用tar或者afio对linux系统进行备份
- Linux系统备份/恢复之Tar(一)
- 用tar备份linux系统
- 用tar 备份linux 系统
- 使用tar或dd等完成Linux系统备份恢复
- 利用tar备份linux系统详解
- Linux:用tar备份系统
- linux find tar -type 备份日志!!
- 【转】linux系统备份
- 用Rsync搭建linux系统之间的增量备份
- 【Linux】Linux系统下find指令详细用法与示例
- Linux系统备份
- linux下利用ruby做系统备份与还原
- Linux常用命令笔记---文件系统的备份、恢复、与监控
- Linux和类Unix系统上5个惊艳的开源备份软件
- Linux下备份系统至另一硬盘
- linux中的一些基础命令的使用(which,whereis,locate,find,alias,file,ls,cat,echo,tar,bzip2,gzip,history,mv,cp,rm)
- 讲解Linux系统下如何自动备份MySQL数据的基本教程