[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tarsnap feature question
--As of April 3, 2013 11:16:57 AM -0700, Michael Sierchio is alleged to
have said:
and on the next day the dir looks like this:
root@pvpn-sf:...tmp/test # ls
a b c
and you perform a backup
tarsnap -c -f test2 /tmp/test
and if you restore from test2, you get only a b and c. This is a
simple fact you could verify for yourself.
--As for the rest, it is mine.
But if the directory *you are restoring to* has x y and z, do they still
exist after the restore? Does tarsnap *delete* them because they weren't
in the backup set? Or does it just restore all the files that *were* in
the backup set, and leave the rest alone? That's the question.
In other words if:
root@pvpn-sf:...tmp/test # ls
x y z
and you do:
tarsnap -x -f test2 /tmp/test
do you have:
root@pvpn-sf:...tmp/test # ls
a b c x y z
or do you have:
root@pvpn-sf:...tmp/test # ls
a b c
There are reasons to want both ways, but it's nice to know which it will
be. ;)
I think tarsnap does the former: Restores files without touching anything
currently there (unless they are overwritten by the restore), but I don't
have a small restore set to test with at the moment.
Daniel T. Staal
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------