Added duplicity backup makefile
authorHarvie <tomas@mudrunka.cz>
Sun, 24 Oct 2010 14:59:26 +0000 (16:59 +0200)
committerHarvie <tomas@mudrunka.cz>
Sun, 24 Oct 2010 14:59:26 +0000 (16:59 +0200)
make/Makefile.duplicity [new file with mode: 0644]

diff --git a/make/Makefile.duplicity b/make/Makefile.duplicity
new file mode 100644 (file)
index 0000000..4e5b7c3
--- /dev/null
@@ -0,0 +1,53 @@
+BACKUP_TARGET="ssh://user@server/.BackupCrypto/backup-name"
+export PASSPHRASE=looong-password-fjdshfkasdfhdsfhsdhfsdhfsdhsjdkfjkdsjfdshjfhdsjf
+### DO NOT WRAP THE PASSPHRASE WITH QUOTES, THEY WILL BE TAKEN AS PART OF IT ###
+
+BACKUP_SOURCE="./"
+DFLAGS=--exclude './Makefile' --exclude '**/_*'
+DUPLICITY=duplicity
+#BACKUP_TARGET="file:///tmp/bkp"
+
+.PHONY: backup full verify list status cleanup restore help man
+
+backup:
+       $(DUPLICITY) $(DFLAGS) $(BACKUP_SOURCE) $(BACKUP_TARGET)
+
+full:
+       $(DUPLICITY) full $(DFLAGS) $(BACKUP_SOURCE) $(BACKUP_TARGET)
+
+verify:
+       $(DUPLICITY) verify $(DFLAGS) $(BACKUP_TARGET) $(BACKUP_SOURCE)
+
+list:
+       $(DUPLICITY) list-current-files $(BACKUP_TARGET)
+
+status:
+       $(DUPLICITY) collection-status $(BACKUP_TARGET)
+
+cleanup:
+       $(DUPLICITY) cleanup --force $(BACKUP_TARGET)
+
+restore:
+       #       you can restore your files using this command:
+       #       PASSPHRASE='$(PASSPHRASE)' $(DUPLICITY) restore $(BACKUP_TARGET) /tmp/restored
+
+man:
+       man duplicity
+
+help:
+       ###################################################################
+       #
+       #  Makefile for backing-up using duplicity
+       #  --> http://duplicity.nongnu.org/
+       #
+       #       make          - same as "make backup"
+       #       make backup   - backup (full or incremental)
+       #       make full     - full backup
+       #       make verify   - compare local files with backup
+       #       make list     - list files on backup
+       #       make status   - print backup status
+       #       make cleanup  - remove extraneous files from backup
+       #       make restore  - print command to restore files
+       #       make help     - print this help
+       #       make man      - show duplicity manpage
+       #
This page took 0.124398 seconds and 4 git commands to generate.