Artificial intelligent assistant

gzip multiples directory into archives in another directory I want to back up each of the directories in `/home`, in separate `.tar.gz files`, to the `/backup` directory. Here an example. I know how to compress them. But not sure, how to send it in another directory. /home/ab123456, /home/ertoto, /home/mange /backup/ab123456.tar.gz, /backup/ertoto.tar.gz, /backup/mange.tar.gz

You can loop over the contents of `/home`


cd /home

for file in */; do tar czf /backup/"$file".tar.gz "$file";done

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 6e3bec2e7bec0ea8f063ffc39486cfb3