Re: [Dar-support] Unexpected password prompt when isolating an encrypted archive
For full, incremental, compressed and encrypted backups or archives
Brought to you by:
edrusb
|
From: Denis C. <dar...@fr...> - 2025-12-22 20:30:06
|
I guess you make a confusion between -K and -J options -K is to be used for the object of the operation (the archive you create, the isolated catalog you create, the archive you test, list, extract data from...) -J option apply to the archive of reference (the one given to -A option), here the archive you take as reference to isolate a catalog. the same way '-$' option (pay attention to the quote if given on shell prompt), applies to the auxiliary archive of reference (see -@ option) note that -K is only mandatory if you want to cipher the archive (or isolated catalog, which is just a particular type of archive) about to be created. When reading an archive, if -K -J or '-$' is not specified and the corresponding archive is ciphered, dar will issue a prompt for you provide the password (this is what you got here without -J option). I would suggest setting the lennz-darrc file more or less that way: #------- all: -K aes:secret reference: -J aes:secret #------- I let you read the conditional syntax paragraph in dar man page for more information on that syntax and if you want to do more funny things: http://dar.linux.free.fr/doc/man/dar.html#CONDITIONAL%20SYNTAX Cheers, Denis Le 22/12/2025 à 20:30, ogreg--- via Dar-support a écrit : > Isolating the catalog from an encrypted archive: > > /dar -zzstd -N -B lennz-darrc -R /proc/cygdrive -C /proc/cygdrive/F/ > darback/lennz-1-C-0 -A /proc/cygdrive/F/darback/lennz-1-F-0/ > Archive lennz-1-F-0 requires a password: > > lennz-darrc contains the line: > *-K aes:secret* > > The previous steps dar -c, dar -t, and dar -d run with a similar command > line, but are able to used the needed information from lennz-darrc. > > > |