[kwlug-disc] tar --directory help please
Ronald Barnes
ron at ronaldbarnes.ca
Wed Jun 4 15:06:23 EDT 2025
Anton Avramov wrote on 2025-06-04 11:14:
> So one solution to your problem would be:
> find /etc/systemd/system -name 'mailman*' -exec realpath --relative-to
> / '{}' \; | tar -czvf ffs.tar --directory=/ --files-from -
The `find` and `tar` isn't a bad idea.
Normally I'd use a subshell and `cd`:
( cd / ; tar ... etc/systemd/system/mailman* )
Thanks again
More information about the kwlug-disc
mailing list