updated backup stuff

This commit is contained in:
Jeffrey Paul 2013-03-03 23:29:23 +01:00
parent 12afa485c0
commit a8c16323ac

View File

@ -11,16 +11,24 @@ SUFFIX = "$(NO_COLOR)"
default: backup default: backup
backup: clean backup: clean mailoffsite databackup
dvbackup:
@echo $(PREFIX) $@ $(SUFFIX) @echo $(PREFIX) $@ $(SUFFIX)
cd ~/Documents/datavibe/backup && make cd ~/Documents/datavibe/backup && make
imapbackup:
offlineimap offlineimap
rsync -e "ssh -c arcfour -o Compression=no -x" \ rsync -e "ssh -c arcfour -o Compression=no -x" \
-avPhzy --delete sneak@datavibe.net:.maildir/ \ -avPhzy --delete sneak@datavibe.net:.maildir/ \
$(HOME)/Documents/Archival/mail/sneak.datavibe.net.maildir/ $(HOME)/Documents/Archival/mail/sneak.datavibe.net.maildir/
mailoffsite: imapbackup
rsync -e "ssh -c arcfour -o Compression=no -x" \ rsync -e "ssh -c arcfour -o Compression=no -x" \
-avPhzy --delete $(HOME)/Documents/Archival/mail/ \ -avPhzy --delete $(HOME)/Documents/Archival/mail/ \
sneak@datavibe.net:.mailbackup/ sneak@datavibe.net:.mailbackup/
databackup: dvbackup imapbackup
backup.command backup.command
clean: clean: