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

Re: Issue: Tarsnap archives from old machine to new machine



Graham,

The case is the latter. But I did upload an archive around July 2nd and my account was charged for bandwidth and two days of storage. So it is possible that I didn't copy the correct key file over. Though I was following the simple getting started instructions...where I put my keyfile in the /root/ directory. This was the key that I copied over. However, I did register the new machine under a new name with the Tarsnap service. Is it possible that this is creating the conflict? And is there a way to unauthorize the machine?

Best,
Brandon

On Sun, Jul 5, 2020, at 1:01 PM, Graham Percival wrote:
Hi Brandon,

When you say that --fsck has not yielded any results, what do you
mean?  You should see something like this:

    $ tarsnap --keyfile .test-tarsnap/tarsnap.keys --fsck
    Phase 1: Verifying metadata validity
    Phase 2: Verifying metadata/metaindex consistency
    Phase 3: Reading chunk list
    Phase 4: Verifying archive completeness
      Archive 1/32...
      Archive 2/32...
    --skip--
      Archive 32/32...
    Phase 5: Identifying unreferenced chunks
    $

If I do the same with a key which has no archives, I get:

    $ tarsnap --keyfile src/tarsnap/build/empty.keys --fsck
    Phase 1: Verifying metadata validity
    Phase 2: Verifying metadata/metaindex consistency
    Phase 3: Reading chunk list
    Phase 4: Verifying archive completeness
    Phase 5: Identifying unreferenced chunks
    $ 


If the latter case, then there's two possibilities:

    1) you didn't copy the correct keyfile over -- maybe you
    accidentally grabbed a "test" keyfile from your previous
    machine?

    2) you might not have uploaded any archives.  Were you using
    --dry-run on your previous machine, perhaps in a shell script?
    When you tried --list-archives and saw nothing, was that on
    the previous machine or the new one?

Cheers,
- Graham

On Sat, Jul 04, 2020 at 04:57:34PM -0500, Brandon Woodford wrote:
> I've created archives on a previous Unix machine and have them stored on the Tarsnap servers. Now, I'm trying to get those previous archives down to another Unix machine. The problem is...I don't have the previous Unix machines Tarsnap cache directory. I do have the key, however. I've tried to use the command: tarsnap --keyfile=/prev/key --fsck for creating a new cache directory on the new Unix machine. This has not yielded any results. When running tarnsap --list-archives I receive nothing. 

> Any help is appreciated.

> Thanks,
> Brandon