2012-06-20 08:22:58 +00:00
|
|
|
JUNKFILES = .bash_history .irb_history .pip .ScanSnap .nbems .fldigi .cpan
|
|
|
|
JUNKFILES += .gdb_history .mysql_history .sqlite_history
|
2012-12-19 00:17:00 +00:00
|
|
|
YYYYMM := $(shell date +%Y%m)
|
2012-06-20 08:22:58 +00:00
|
|
|
|
2013-02-28 16:38:06 +00:00
|
|
|
NO_COLOR = \033[0m
|
|
|
|
O1_COLOR = \033[0;01m
|
|
|
|
O2_COLOR = \033[32;01m
|
|
|
|
|
|
|
|
PREFIX = "$(O2_COLOR)==>$(O1_COLOR)"
|
|
|
|
SUFFIX = "$(NO_COLOR)"
|
|
|
|
|
2012-06-20 08:22:58 +00:00
|
|
|
default: backup
|
|
|
|
|
|
|
|
backup: clean
|
2013-02-28 16:38:06 +00:00
|
|
|
@echo $(PREFIX) $@ $(SUFFIX)
|
|
|
|
cd ~/Documents/datavibe/backup && make
|
|
|
|
offlineimap
|
|
|
|
rsync -e "ssh -c arcfour -o Compression=no -x" \
|
|
|
|
-avPhzy --delete sneak@datavibe.net:.maildir/ \
|
|
|
|
$(HOME)/Documents/Archival/mail/sneak.datavibe.net.maildir/
|
|
|
|
rsync -e "ssh -c arcfour -o Compression=no -x" \
|
|
|
|
-avPhzy --delete $(HOME)/Documents/Archival/mail/ \
|
|
|
|
sneak@datavibe.net:.mailbackup/
|
|
|
|
backup.command
|
2012-06-20 08:22:58 +00:00
|
|
|
|
|
|
|
clean:
|
2013-02-28 16:38:06 +00:00
|
|
|
@echo $(PREFIX) $@ $(SUFFIX)
|
|
|
|
@-rm -rf ~/tmp/*
|
|
|
|
@-rm -rf ~/Library/Caches/*
|
|
|
|
@-rm -rf ~/.Trash/*
|
|
|
|
@-rm -rf $(JUNKFILES)
|
2012-12-19 00:17:00 +00:00
|
|
|
-mkdir -p $(HOME)/Documents/$(YYYYMM)
|
|
|
|
-mv $(HOME)/Desktop/* $(HOME)/Documents/$(YYYYMM)
|
2012-06-20 08:22:58 +00:00
|
|
|
|
|
|
|
size:
|
|
|
|
du -sh $(HOME)
|