proposition: create eg `attachments-1000.tar.gz` instead of `smsDb-1000/Attachments.tar.gz`. This archive would contain the smsDb-1000 directory. I find this is cleaner that archives extract their content inside a subdirectory.

The command to create it is `tar cvzf attachments-1000.tar.gz "$ATTACHMENT_DIR/"`