Fileset Examples

In this section, some fileset examples are presented:

Fileset: for a selection of instances by name
FileSet {
   Name = fs-amazon-ec2-instances-a-b
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: region=us-east-1 access_key=AKIAQTESTKEY12134g secret_key=m23480ahpqwre894qwrffsfdSecretExample instances=myInstanceA,myInstanceB"
   }
}
Fileset: using a config file
FileSet {
   Name = fs-amazon-ec2-instance-a
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: config_file=/opt/bacula/etc/amazon-ec2.settings instances=myInstanceA"
   }
}

Config file contents in stored in the same File Daemon host in /opt/bacula/etc/amazon-ec2.settings:
region=us-east-1
access_key=AKIAQTESTKEY12134g
secret_key=m23480ahpqwre894qwrffsfdSecretExample
Fileset: Exclude boot volume
FileSet {
   Name = fs-amazon-ec2-instance-a
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: config_file=/opt/bacula/etc/amazon-ec2.settings instances=myInstanceA exclude_boot_volume=true"
   }
}
Fileset: Backup instances contaning tag bacula
FileSet {
   Name = fs-amazon-ec2-instances
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: config_file=/opt/bacula/etc/amazon-ec2.settings instances_tags=\"bacula\""
   }
}
Fileset: Backup instances contaning tag backup=yes
FileSet {
   Name = fs-amazon-ec2-instances
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: config_file=/opt/bacula/etc/amazon-ec2.settings instances_tags=\"backup=yes\""
   }
}
Fileset: using instance id
FileSet {
   Name = fs-amazon-ec2-instance-a
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: config_file=/opt/bacula/etc/amazon-ec2.settings instances=i-xxxxmyInstanceId"
   }
}
Fileset: by tag, but exclude A
FileSet {
   Name = fs-amazon-ec2-instances
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: config_file=/opt/bacula/etc/amazon-ec2.settings instances_tags=\"backup=yes\" instances_exclude=myInstanceA"
   }
}
Fileset: Backup specific volume of instance
FileSet {
   Name = fs-amazon-ec2-instance-a-vol-x123
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: config_file=/opt/bacula/etc/amazon-ec2.settings instances=myInstanceA disks=vol-x123asfafafexample"
   }
}
Fileset: Backup one instance, but reduce concurrency
FileSet {
   Name = fs-amazon-ec2-instance-a
   Include {
      Options { signature = MD5 }
      Plugin = "amazon-ec2: config_file=/opt/bacula/etc/amazon-ec2.settings instances=myInstanceA concurrent_threads=50"
   }
}

Go back to the Fileset Configuration article.

Go back to the main configuration page.

Go back to the Amazon EC2 Plugin main page.

Go back to the main Dedicated Backup Solutions page.