Created
July 18, 2017 09:17
-
-
Save royharoush/027897b0f412ca8159eb53aaba496456 to your computer and use it in GitHub Desktop.
backup all text files in /root folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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