Fileset Examples

In this section, some fileset examples are presented:

Fileset: for all data belonging to a user
FileSet {
   Name = fs-e2ws-adelev
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: endpoint=myexchange.myorg.com admin_user=ex-admin@myorg.com admin_password=xxxxxxx user=adelev@myorg.com"
   }
}
Fileset: using a config file
FileSet {
   Name = fs-e2ws-adelev
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings user=adelev@myorg.com"
   }
}

Config file contents in stored in the same File Daemon host in /opt/bacula/etc/e2ws.settings:
endpoint=myexchange.myorg.com
admin_user=ex-admin@myorg.com
admin_password=xxxxxxx
Fileset: Backup only emails
FileSet {
   Name = fs-e2ws-adelev-email
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings service=email user=adelev@myorg.com"
   }
}
Fileset: Backup emails and appointments of all users
FileSet {
   Name = fs-e2ws-email-calendar
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings service=email,calendar"
   }
}
Fileset: Backup only email folders: inbox and important custom folder
FileSet {
   Name = fs-e2ws-all-inbox-important
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings service=email folder=inbox,important"
   }
}
Fileset: Backup emails in mime format for two users
FileSet {
   Name = fs-e2ws-mime-u1-u2
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings service=email mime=true user=user1@myorg.com,user2@myorg.com"
   }
}
Fileset: Backup emails and contact in mime format for two users, but exclude attachments
FileSet {
   Name = fs-e2ws-user1-user2-no-attach
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings service=email,contact mime=true exclude_attachments=true user=user1@myorg.com,user2@myorg.com"
   }
}
Fileset: Backup all services from all users starting with ‘org’
FileSet {
   Name = fs-e2ws-org-users
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings user_regex_include=\"org.*\""
   }
}
Fileset: Backup one user reducing the concurrency configuration
FileSet {
   Name = fs-e2ws-user1-min
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings user=user1@myorg.com concurrent_threads=1 concurrent_listing_threads=1"
   }
}
Fileset: Backup one user maximizing the concurrency configuration
# Warning: This configuration could provoke throttling issues
FileSet {
   Name = fs-e2ws-user1-max
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings user=user1@myorg.com concurrent_threads=50 concurrent_listing_threads=10 backup_queue_size=500 api_list_page_size=500"
   }
}
Fileset: Backup all services, all users, but exclude emails where the subject contains ‘private’
FileSet {
   Name = fs-e2ws-exclude-private
   Include {
      Options { signature = MD5 }
      Plugin = "e2ws: config_file=/opt/bacula/etc/e2ws.settings email_exclude_index_expr=\"emailSubject.includes('private')\"""
   }
}

Go back to the Fileset Configuration article.