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

Re: some questions regarding tarsnap: from a new user



On 2016-05-31 14:24, Sarah Alawami wrote:
Hello to all. I'm fairly new at tarsnap, ok about 24 hours old. Anyway
I have some questions. Keep in mind I'  kind of a 2 year old beginer
with unix.

1. Is there a way for e to view the contents of an archive as I can't
remember what archive went with what script as all of them have the
same name., or so I notice, I think.

The command "tarsnap --list-archives -v" will show you the name and the
date/time stamp of every archive.  As a new person to Unix, you can pipe
the output to a file, and then sort it with the sort(1) command.

$ tarsnap --list-archives -v > a.list.of.all.my.archives

The command "tarsnap -tv <archive.name> will show you the contents of
any individual archive.  Yes, the server has to send the archive to
the client, in order to decrypt the contents.  The -t requests a content
list, and the -v (added together as -tv above, or -vt, or you can use them
separately as -v -t), asks tarsnap to show metadata about each file,
such as size and date/time stamp of each file.  Without the -v option,
you will only see names of files displayed.

2. I did a dry run on a script to make sure it would work. The archive
size was very wrong. The size of the folder including all of the sub
folders is 14 gig. This was shown by a  du -sh on the folder in
question. I'm only showing 800 mb. Is this maybe because I don't have
enough funds deposited into the account?

It's not clear from the limited information posted why this happened.
I can make guesses, but theywon't necessarily be much help:  Exclusions,
nodump flags, and crossing mount points are three possibilities that come
immediately to mind.