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

Re: Extracted archive does not contain files

Thanks Graham. On inspecting the list of files in the archive, I can see that all the files except 1(??) are missing - only the directories are present. 

I tried recreating the archive and this time everything is fine. I'm not sure why it was created incorrectly the first time which is a little concerning, but it seems to be fine for now.

On Thu, Apr 15, 2021 at 10:17 AM Graham Percival <gperciva@tarsnap.com> wrote:
Hi Ankit,

First, I recommend checking the list of files in the archive:
    tarsnap -t -v -f <archive_name>

-t lists the filename, and -v also writes the file sizes.  That will allow you
to confirm that the files are definitely in the archive.

Second, if the archive looks good, I recommend (temporarily) side-stepping the
question of the "exclude" lines: comment them out, then try the extraction

    tarsnap -x -v -f <archive_name>

This should print the filenames as it extracts each one.

- Graham

On Wed, Apr 14, 2021 at 10:10:22PM -0700, Ankit wrote:
> I am getting started with tarsnap and am running into a problem extracting
> my archive. The archive size looks right, but when extracted using:
> "tarsnap -x -f <archive_name>"
> all of the directories are empty. It is extracting the directory structure
> but no files are present.
> The archive was created on a samba share mounted at /mnt/... in case that
> matters..
> The config at /etc/tarsnap.conf is out of the box, except a few excludes i
> added -
> exclude node_modules/
> exclude target/
> exclude venv/
> exclude site-packages/
> Can anyone explain what's going wrong?
> --
> Regards,
> Ankit