I created some backup scripts that are added to cronjob. I noticed the size of recent backups was tripled in last few days. (Upgraded to F25) I checked out the scripts manually and found out that tar ignores -X option and whole lot of excluded directories were getting backed up too. Here is the command I was using.
Code:
#!/bin/bash
TIME=`date +"%Y-%m-%dT%H-%M"`
FILENAME="important-$TIME"
SRC1="/media/Data/Backup"
SRC2="/media/Data/Books"
DST="/run/media/akya/Backup/cron"
EX="/home/akya/scripts/exclude"
tar -cpz $SRC1 $SRC2 -X $EX/imp | gpg --encrypt --recipient akshay > $DST/$FILENAME.tar.gz.gpg
notify-send 'Backup' 'Finished backing up important stuff from Data' --icon=/home/akya/scripts/backup.png
#END
If I remove the gpg part then the exclude file is taken into consideration while achiving. The above command worked before. Not sure whats exactly wrong here.