-
Code's Tags
-
Your Codes
-
Reffers
-
Linked Codes
|
Code:
Short link for Twitter:
HTML:
HTML view:
Copy Source | Copy HTML #!/bin/bash tempfile=`tempfile` archfile=/mnt/sda1/backup/backup`date +%F`.tar.bz2 list=/root/backup.txt rm -f $tempfile cat $list | awk '!/^#/ && /\w+/' | while read line do tar -rf $tempfile $line >/dev/null 2>&1 done #<testarch.txt bzip2 -c $tempfile >$archfile rm -f $tempfile
|