1

Tar a file with a different name

view story
linux-howto

http://unix.stackexchange.com – To make my environment deployable, I occasionally tar up some handy files and scripts: tar -czvf env.tgz .vimrc .vim/ bin/lsl bin/s I would like to add .bashrc to the mix, but I have some sensitive information in there so I maintain .bashrc-deploy which I can then simply rename once the tarball is on the new server. However, I would really like to have the tarball have the correct name .bashrc from the get-go so that I would not have to rename. I considered writing a script which would temporarily rename the files and make the tarball, like so: #!/bin/bash mv .bashrc .bashrc-real mv .bashr (HowTos)