Re: --sequential-read not sequential???
Denis Corbin <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
On 20/02/2020 17:31, Graham Cobb wrote: >> You can do exactly what you want by mean of dar_form with dar: >> >> dar_xform -E 'rm "%p/%b."*".%e"' \ >> -E "echo Fetching $dir/%b.%n.%e.gpg..." \ >> -E "gpg -d -q -o '%p/%b.%n.%e' --batch '$dir/%b.%n.%e.gpg'" \ >> /var/tmp/$archive - | dar -t - --sequential-read > > This doesn't work. It seems that dar_xform does not really support -E > (despite being documented in the man page). As a simple test: > > dar_xform -E 'echo hello' a-file-which-does-not-exist - > > Should output "hello" before complaining about the missing file, but it > does not. > > > Sorry, this is my mistake, -E is run after each slice created, this is -F that should be used here for your commands to be run before each slice to be read. for dar: -F is associated with the archive of reference (-A option) while -E is associated to the archive object of the operation in dar ( -c -x -t -d ... options). By similarity, for dar_xform, -F is for the read archive and -E for the written one. Cheers, Denis _______________________________________________ Dar-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dar-support
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAl5O2fkACgkQCDGwvQPY sYLEFxAAjkbSpNsCHjY65tmY/HNEPIMd///PkPc0Id69oMnpVhyf/B3WzwPnu4iP OUZMInRx2qmAbVBDSWLH+9lYOMiZFf8WXsTYwYwWBAxoxiUYrNz6T8/7muD7KGIj QdOLaU4M7So0QVpNWHPDsMZWLqICijeNI8obDAM3yEQeomK/Ww7qTH4yvWGY4DdX b89gZBTxpKpuIPPJrRuqeCSVIfI42IhpdhDHaY6fFot6iVj+nSU7CwNXL0eX5Qdr kNp3kIBro/UDlSwyVql2kBM5GerwSN+qPB9lVF5P7pSbjvkaILuh5u2qvhmcSGzW sh/cMrcZO/uHluMUqK2GDiGrO1kYstyC8IkWdIrFitKVHGRInYR6NXn4/WHwL6Nl A+INCRqwMoQl0Qb4n7qIf8ld+evmSbE0Qw7L6VO9eGfIECUXkmG9als6s/SgQXHA AoBs1bR4rWhZrPtLqAXfc4rObUB3n4lCXGPr3A9u3guZheInq19Jh+PG0wAVysGP qEdpKcUkRtjWDtu0rxaJJlP3suRYp7dtFyu39yBeSlW8vD4g1o6VutZ9Z7ymOZRw lB9v+AZfVItBB7YzKVDe5kDcFg07FOJPs0RBjIv6MPbDz8OxYAB47ncydTMhe+57 P//ozQdIMbYYH1jGIsD5GX2Tl03h1AX9rNmMwcfQBlyLiH6cg7M= =lmIZ -----END PGP SIGNATURE-----