快速业务通道

Linux下常用的压缩解压命令[收藏]

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-16

%l hour ( 1..12)

%m month (01..12)

%M minute (00..59)

%n a newline

%N nanoseconds (000000000..999999999)

%p locale’s equivalent of either AM or PM; blank if not known

%P like %p, but lower case

%r locale’s 12-hour clock time (e.g., 11:11:04 PM)

%R 24-hour hour and minute; same as %H:%M

%s seconds since 1970-01-01 00:00:00 UTC

%S second (00..60)

%t a tab

%T time; same as %H:%M:%S

%u day of week (1..7); 1 is Monday

%U week number of year, with Sunday as first day of week (00..53)

%V ISO week number, with Monday as first day of week (01..53)

%w day of week (0..6); 0 is Sunday

%W week number of year, with Monday as first day of week (00..53)

%x locale’s date representation (e.g., 12/31/99)

%X locale’s time representation (e.g., 23:13:48)

%y last two digits of year (00..99)

%Y year

%z hhmm numeric timezone (e.g., -0400)

%:z hh:mm numeric timezone (e.g., -04:00)

%::z hh:mm:ss numeric time zone (e.g., -04:00:00)

%:::z numeric time zone with : to necessary precision (e.g., -04, 05:30)

%Z alphabetic time zone abbreviation (e.g., EDT)

By default, date pads numeric fields with zeroes. The following optional flags may follow ‘%’:

- (hyphen) do not pad the field _ (underscore) pad with spaces 0 (zero) pad with zeros ^
use upper case if possible # use opposite case if possible

After any flags comes an optional field width, as a decimal number; then an optional modifier,
which is either E to use the locale’s alternate representations if available, or O to use the
locale’s alternate numeric symbols if available.


我们也可以通过tar实现增量备份,这个就需要我们查看tar的官方文档.
-g, --listed-incremental F
create/list/extract new GNU-format incremental backup

-G, --incremental
create/list/extract old GNU-format incremental backup

如何跟踪软链接
-h, --dereference
don’t dump symlinks; dump the files they point to
保持原来的文件结构
-l, --one-file-system
stay in local file system when creating an archive


ALL OPTIONS
--atime-preserve
don’t change access times on dumped files

-b, --blocking-factor N
block size of Nx512 bytes (default N=20)

-B, --read-full-blocks
reblock as we read (for reading 4.2BSD pipes)

--backup BACKUP-TYPE
backup files instead of deleting them using BACKUP-TYPE simple or numbered

--block-compress
block the output of compression program fo

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号