hacks/homedir.makefile/Makefile

25 lines
617 B
Makefile
Raw Normal View History

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
default: backup
backup: clean
2012-12-19 00:17:00 +00:00
mbsync eeqjgmail
mbsync acidhousegmail
2012-06-20 08:22:58 +00:00
-rsync -avPhz --delete sneak@datavibe.net:.maildir/ \
$(HOME)/Documents/Secure/datavibe.maildir/
@internalbackup.command # to 1tb
@externalbackup.command # to fw800
clean:
-rm -rfv ~/tmp/*
-rm -rfv ~/Library/Caches/*
-rm -rfv ~/.Trash/*
-rm -rfv $(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)