我正在使用tarsnap进行备份,并且工作正常。 但是,要testing备份,我想恢复它,但不覆盖当前版本的文件。 因此,将备份提取到独立于备份源文件夹的文件夹上是有意义的。 可以tarsnap做这个吗?
从手册:
-C directory (c and x modes only) In c mode, this changes the directory before adding the following files. In x mode, change directories after opening the archive but before extracting entries from the archive.
所以, tarsnap -f imagename -C output-dir会将imagename提取到output-dir 。