`
xiaoshenge
  • 浏览: 169796 次
  • 性别: Icon_minigender_1
  • 来自: 十堰
社区版块
存档分类
最新评论

tar: Removing leading `/' from member names

阅读更多

今天在一个备份脚本时候:使用tar对文件打包时,报错tar: Removing leading `/' from member names。

然后找到了解决办法:通常是在两台环境相似的机器上进行同步复制的时候,才有需要使用绝对路径进行打包。使用绝对路径打包时如果不指定相应的参数,tar会产生一句警告信 息:”tar: Removing leading `/’ from member names”,并且实际产生的压缩包会将绝对路径转化为相对路径。http://xiaobin.net/200911/tar-removing-leading-slash-from-member-name/

更为可靠的方法是在打包和解开的时候都使用参数 -P

看来参数真的可以解决不少问题,以前不知到chmod -R这个参数,费了不少事情。

分享到:
评论

相关推荐

    Android代码-ButterKnifeLite

    This library is based on the ideas of removing boilerplate code like ButterKnife but with use cases targeted for view binding of xml. Resulting is a vey tiny library. @BindView annotation to refer any...

    Arduino_SAMD_Boards_1.8.5.rar

    Arduino SAMD Boards(32-bits ARM Cortex-M0+) 板型离线安装包。版本1.8.5 网络不好下载很多次都不成功;下载该文件包解压至C:\Users\Administrator\AppData\Local\Arduino15\staging\packages 文件夹后,再次安装...

    ubuntu中总是提示无法获得锁 (资源暂时不可用) 进程被占用 解决办法

    N: Be aware that removing the lock file is not a solution and may break your system. E: 无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend),是否有其他进程正占用它? root@klw-HP-Z400-Workstation:/# ...

    学会看懂化妆品上面的英文法文.doc

    - **卸妆乳**:makeup removing lotion - **装饰小亮片**:body art glitter - **指甲护理**:manicure/pedicure - **指甲油**:nail polish/color/enamel - **去甲油**:nail polish remover - **护甲液**:...

    rsync配置

    getfacl: Removing leading '/' from absolute path names # file: var/www/html/upload # owner: root # group: root user::rwx user:daemon:rwx group::r-x mask::rwx other::r-x 最后,需要使 daemon 对在 /var/...

    Removing camera shake from a single photograph. matlab实现代码

    R. Fergus, B. Singh, A. Hertzmann, S. T. Roweis, and W. T. Freeman. Removing camera shake from a single photograph. ACM Trans. Graphics, 25(3):787–794, 2006.

    Centos系统下“无法打开并写入文件”问题的解决

    摘要 最近在工作中发行限了一个问题,当前是root用户,去编辑/etc/ssh/sshd_config 却提示没有权限修改。报错如”/etc/ssh/sshd_config” ...getfacl: Removing leading '/' from absolute path names # file: etc/ss

    Yum安装中出现错误mirrorlist.txt的解决方法

    </HTML>/removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base ``` 这表明`Yum`无法从配置的镜像列表中找到...

    UE(官方下载)

    Adding or removing file extensions for syntax highlighting How to configure syntax highlighting to highlight different file types automatically Project Settings Advanced Project Features - Using the ...

    化妆品中英文对照.doc

    18. 卸妆乳:makeup removing lotion - 柔和卸妆,适合敏感肌肤。 19. 贴在身上的小亮片:body art - 身体装饰,增加视觉效果。 20. 指甲护理:manicure/pedicure - 照顾指甲健康。 21. 指甲油:nail polish/color/...

    webpack-fix-style-only-entries:Webpack插件,用于解决只有样式项(csssassless)生成额外的js文件的问题

    这是一个小插件,旨在解决只有样式项(css / sass / less / stylus)生成额外的js文件的问题。 :warning: 当前的软件包版本与webpack 5不兼容。这里有一个兼容的fork: : 您可以通过阅读以下问题找到更多信息: ...

    ESB Professional Computation Suite for VCL v6.2.0

    If you have problems, try removing all trace of ESBPCS, especially previous versions and trials, and running Setup.exe again. Requires about 30MB of Disk Space. See WhatsNew.Txt in the Source ...

    FairyGUI-Unity-Plugin-3.4.0.zip

    - NEW: Add UIPackage.UnloadAssets and UIPackage.ReloadAssets to allow unload package resources without removing the package. - NEW: Add TransitionActionType.Text and TransitionActionType.Icon. 2.4.0...

    bbgh-backend

    后端 使用docker和docker-compose 从终端运行docker-compose # build with maven mvn package # or build with docker docker run -it --rm -v " $PWD " :/usr/src/mymaven -v " $HOME /.m2:/... # by removing all

    新版 NGUI Next-Gen UI v2018.3 (December 13, 2018)

    You can use the new asset directly, of course -- and if you are Unity savvy enough, you can swap their GUIDs from the meta files, effectively removing the need for the reference asset altogether. ...

    MySQL5.5.15 linux安装配置

    which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. ...

    Oracle RAC ACFS安装与卸载

    ACFS-9314: Removing previous ADVM/ACFS installation. ACFS-9315: Previous ADVM/ACFS components successfully removed. ACFS-9307: Installing requested ADVM/ACFS software. ACFS-9308: Loading installed ...

    linux startx 出现could not open default font 'fixed'

    Could not init font path element unix/:7100, removing from list! Fatal server error: could not open default font 'fixed' ``` 这里的错误信息分为两部分: 1. **字体路径初始化失败**:`Could not init ...

    ubuntu ref

    ### Ubuntu Reference: Key Commands and Concepts ... From managing privileges to configuring the display and network, this guide serves as a handy reference for anyone working with Ubuntu.

    10g-AddNode-RAC-ASM-AIX

    - Oracle官方文档:[Adding and Removing Nodes from a Cluster](http://download-west.oracle.com/docs/cd/B19306_01/rac.102/b14197/adddelunix.htm#BEICADHD) - 第三方文章:[Adding and Removing Nodes]...

Global site tag (gtag.js) - Google Analytics