checkpoint

This commit is contained in:
Jeffrey Paul
2013-02-28 17:38:06 +01:00
parent 43ab9629f2
commit 098609d70d
3 changed files with 132 additions and 11 deletions

View File

@@ -2,21 +2,33 @@ JUNKFILES = .bash_history .irb_history .pip .ScanSnap .nbems .fldigi .cpan
JUNKFILES += .gdb_history .mysql_history .sqlite_history
YYYYMM := $(shell date +%Y%m)
NO_COLOR = \033[0m
O1_COLOR = \033[0;01m
O2_COLOR = \033[32;01m
PREFIX = "$(O2_COLOR)==>$(O1_COLOR)"
SUFFIX = "$(NO_COLOR)"
default: backup
backup: clean
mbsync eeqjgmail
mbsync acidhousegmail
-rsync -avPhz --delete sneak@datavibe.net:.maildir/ \
$(HOME)/Documents/Secure/datavibe.maildir/
@internalbackup.command # to 1tb
@externalbackup.command # to fw800
@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
clean:
-rm -rfv ~/tmp/*
-rm -rfv ~/Library/Caches/*
-rm -rfv ~/.Trash/*
-rm -rfv $(JUNKFILES)
@echo $(PREFIX) $@ $(SUFFIX)
@-rm -rf ~/tmp/*
@-rm -rf ~/Library/Caches/*
@-rm -rf ~/.Trash/*
@-rm -rf $(JUNKFILES)
-mkdir -p $(HOME)/Documents/$(YYYYMM)
-mv $(HOME)/Desktop/* $(HOME)/Documents/$(YYYYMM)