[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tarsnap feature question



On Wed, Apr 3, 2013 at 10:28 AM, Tom Limoncelli <tal@whatexit.org> wrote:
> I think Roberto is asking for something different.
>
> Say you have a directory with files a, b, c.  You do a tarsnap backup.  Now
> delete files a, b, c and create files x, y, z.
>
> Do a restore in that same directory.  You end up with a directory with a, b,
> c, x, y, z.  I believe Roberto wants the resulting directory to have just a,
> b, c.

You are completely mistaken.  If on day 0, /tmp/test contains x, y,
and z, and you do a backup

root@pvpn-sf:...tmp/test # ls
x       y       z

tarsnap -c -f test0 /tmp/test

and on day two, the contents of /tmp/test is

root@pvpn-sf:...tmp/test # ls
a       b       c       x       y       z

and you do a backup

tarsnap -c -f test1 /tmp/test

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.

- M