I need to tar two different directories at the same time. Is it possible to execute two instances of tar in parallel?


Try parallel:

parallel tar -f {}.tar {} ::: directory1 directory2

There are several possibilities:

1) Use screen

2) Put them in background with & in the end of command line

3) CRON job with the same time of execution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.