Skip to content

Instantly share code, notes, and snippets.

@jadsongmatos
Last active January 3, 2022 21:19
Show Gist options
  • Save jadsongmatos/33ef7bf7679775df597a97c558fad449 to your computer and use it in GitHub Desktop.
Save jadsongmatos/33ef7bf7679775df597a97c558fad449 to your computer and use it in GitHub Desktop.
backup
#!/bin/bash
####################################
#
# Backup TAR script.
#
####################################
find /home/jadson/Área\ de\ trabalho/ -type f | grep -v -E '*node_modules*|*App/chromium*' > /tmp/archiveFileList.txt && tar -I 'zstd --ultra -22 -T1' -cvf /home/jadson/Público/1-bkp.tar.zst -T /tmp/archiveFileList.txt && mv /tmp/archiveFileList.txt /home/jadson/Público/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment