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,