dar without recursion

Jean-Baptiste Denis <[email protected]> Sat, 21 May 2022 15:18:24 +0200
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
Hello,

I've got a directory with an awful lot of files beneath it, at a single level. There is also a number of directories
that I don't know in advance.

directory/
├── dir00
├── dir01
├── dir02
├── dir03
├── dir04
├── dir05
├── dir06
├── dir07
├── dir08
├── dir09
├── dir10
├── file0000000
├── file0000001
├── file0000002
├── file0000003
├── file0000004
[...]
├── file0999997
├── file9999998
├── file0999999
└── file1000000

I'd like to use dar on "directory" without considering all its subdirectories. From the documentation, it is not clear
*to me* if I can get dar doing this without doing some prework before: first one to spot the directories using find or
equivalent, and second one using dar excluding them ?

I'm hijacking my own thread with some side questions related somehow to my initial question:

1. I'd like to have slices size up to a certain size OR containing at most N files, whatever comes first. I don't know
if this would fit with dar internals. If that's the case, it could be a nice new option.

2. Is there a way to handle each slice independently (by running multiple dar commands for example) when extracting, or
iit doesn't make sense ? I could imagine dar slices stored on an nfs server and multiple clients using dar (from an
external script) on differents slice in parallel, potentially leveraging a datacenter/hpc network and a
parallel/distributed filesystem.

Thank you !

Jean-Baptiste