Hi, Marc N. Cannava wrote:
> On Wed, 2002-06-12 at 04:13, Christoph Scheeder wrote: > >>Hmmmm, >>These files get created by tar, not amanda. They only could exist, >>if amanda would use smbmount and tar to create the samba backups. >>But amanda calls smbclient with the options needed to create a tar >>compatible archive directly, and smbclient doesn't create these files. >> > > okay, so in other words these files are not used when doing a Samba > backup, correct? Correct >>>Could the lack of this file be causing Gnutar to delete my incremental >>>restores on Samba shares but not on the Linux filesystems? >>> >>This seems to be plausible to me. >>i had a look at sources of amrecover and found that tar gets called with >>the options "-xpGvf" for restoring normal tar and samba backups. >>i'm wondering if the "G" option is correct for samba backups. >> > > I was wondering that exact same thing myself! > > The manpage doesn't make it extremely clear; what is the difference > between the -g and -G options? I found the place in the sourcecode that > does this (recover-src/extract_list.c) and it makes no distinction > between a tar restore of a Linux filesystem and a tar restore of a > Samba/windows filesystem -- when I believe, as you do, that it should. reading the info's tar gives when called with --help, -G is for restore of "old style" incremental backups (generated by the command "tar -c --incremental ....") and -g is for restore of "new style" incremental backups ( generated by the command "tar -c --listed-incremental ...."). i don't know the differences between old and new style, but if tar folks distinguish between them with different options, i think they should differ enough to be a little incompatible. > (The #ifdef that is in there seems to make a distinction between > restores directly to the remote Windows machine versus restoring to the > local disk.. but not to distinguish between local disk restores of Samba > filesystems and others). > > Interesting thought! Is there a way for me to try the restore manually > and invoke without the -G option? yes, you can use amrestore to get the backup-images back from tape and then use tar to unpack the complete images directly Christoph
