From c40da174660cff4b0f39b02f136d7665cc282679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 9 Jan 2016 10:08:27 +0000 Subject: [PATCH] backup-container: add excludes --- backup-container | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backup-container b/backup-container index 1ad989c..072fe7f 100755 --- a/backup-container +++ b/backup-container @@ -96,7 +96,11 @@ end env = { "ATTIC_PASSPHRASE" => File.read(PASSWORD_FILE).chomp } now = Time.now.strftime("%Y-%m-%d-%H:%M:%S") paths = backup_paths.map {|path| path.to_s } -sh("attic", env, "create", "--stats", "#{BACKUP_PATH}::eve-#{now}", *paths) +sh("attic", env, "create", "--stats", "#{BACKUP_PATH}::eve-#{now}", + '--exclude', '*/srv/repo', + '--exclude', '*/home/joerg/git', + '--exclude', '*/home/joerg/login/git', + *paths) sh("attic", env, "prune", "-v", BACKUP_PATH, "--keep-daily", KEEP_DAILY.to_s, "--keep-weekly", KEEP_WEEKLY.to_s,