1 BACKUP_TARGET="ssh://user@server/.BackupCrypto/backup-name"
2 export PASSPHRASE=looong-password-fjdshfkasdfhdsfhsdhfsdhfsdhsjdkfjkdsjfdshjfhdsjf
3 ### DO NOT WRAP THE PASSPHRASE WITH QUOTES, THEY WILL BE TAKEN AS PART OF IT ###
6 DFLAGS=--exclude './Makefile' --exclude '**/_*'
8 #BACKUP_TARGET="file:///tmp/bkp"
10 .PHONY: backup full verify list status cleanup restore help man
13 $(DUPLICITY) $(DFLAGS) $(BACKUP_SOURCE) $(BACKUP_TARGET)
16 $(DUPLICITY) full $(DFLAGS) $(BACKUP_SOURCE) $(BACKUP_TARGET)
19 $(DUPLICITY) verify $(DFLAGS) $(BACKUP_TARGET) $(BACKUP_SOURCE)
22 $(DUPLICITY) list-current-files $(BACKUP_TARGET)
25 $(DUPLICITY) collection-status $(BACKUP_TARGET)
28 $(DUPLICITY) cleanup --force $(BACKUP_TARGET)
31 # you can restore your files using this command:
32 # PASSPHRASE='$(PASSPHRASE)' $(DUPLICITY) restore $(BACKUP_TARGET) /tmp/restored
38 ###################################################################
40 # Makefile for backing-up using duplicity
41 # --> http://duplicity.nongnu.org/
43 # make - same as "make backup"
44 # make backup - backup (full or incremental)
45 # make full - full backup
46 # make verify - compare local files with backup
47 # make list - list files on backup
48 # make status - print backup status
49 # make cleanup - remove extraneous files from backup
50 # make restore - print command to restore files
51 # make help - print this help
52 # make man - show duplicity manpage