[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
playing with -s
Hi,
I'm doing some experimenting with Tarsnap's -s option. This seems
really useful for avoiding shooting yourself in the head.
Of course, I don't want to do something easy. I want to substitute a
multi-part path, which means I have to escape /.
# tarsnap -xf etctest -s /^etc/var\/dr\/etc/p
tarsnap: Invalid replacement flag d
How can I escape characters in -s? Or am I missing something?
Context: Disaster recovery. If I've installed a brand new VM, I don't
want to restore the old VM's /etc over the top of the new one. It's
probably slightly different. I want to extract the whole of /etc so
it's handy, but have it out of the way.
Yes, I could use -C. But this seems like it *should* be perfectly
doable. I could even do this during archive creation, so that I don't
forget during an emergency restore...
Thanks,
==ml
--
Michael W. Lucas - mwlucas@michaelwlucas.com, Twitter @mwlauthor
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/