Skip to content

Instantly share code, notes, and snippets.

@royharoush
Created July 18, 2017 09:17
Show Gist options
  • Save royharoush/027897b0f412ca8159eb53aaba496456 to your computer and use it in GitHub Desktop.
Save royharoush/027897b0f412ca8159eb53aaba496456 to your computer and use it in GitHub Desktop.
backup all text files in /root folder
find /root -size -20M -exec file {} \; | grep ".*: .* text" | sed "s;\(.*\): .* text.*;\1;" > kalibackup.list && tar cvzf /mnt/hgfs/VMSharedFolder/en/kali-`date '+%m%d%y'`.tar.gz --files-from=kalibackup.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment