Backup files.

#!/bin/bash RESPALDO=~/Desktop/BACKUP mkdir -p Desktop/BACKUP find $HOME -type f -iregex ".*\.\(c\|cpp\|txt\|pdf\|sh\)" -not -name backup.sh -exec cp --backup=t {} $RESPALDO \; -exec rm {} \; tar -czf $(date +%d-%m-%Y).tar.bz2 Desktop/BACKUP/* rm -rf Desktop/BACKUP

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.