phpbu icon indicating copy to clipboard operation
phpbu copied to clipboard

Feature request: move tar --exclude options to the beginning of the command

Open chrisrollins65 opened this issue 3 years ago • 0 comments

I'm trying to exclude the composer vendor directory from my project's backups. The problem is my project has multiple vendor directories. To exclude only the composer vendor directory I need to do --exclude=/absolute/path/to/project/vendor. Tar is capable of doing this, but only if the --exclude option is placed at the beginning of the command, (before the cvf filename... stuff).

I'm not sure how difficult this would be the way the code is currently structured, but it would be a welcome improvement. For the time being I'll just include the vendor folder in my backups because the other non-composer vendor folders are important to keep. Or I'll see about renaming them.

chrisrollins65 avatar Aug 08 '21 11:08 chrisrollins65