Backup
Fileset Examples
In the example below, all objects inside the container container1
will be backed up.
Fileset {
Name = FS_Swift
Include {
Plugin = "swift: user=r1 password=t1 URL=http://swift:8080/auth/v1.0 \
include=container1/*"
}
}
In the example below, all objects that do not end with tmp
inside
the container container1
will be backed up.
Fileset {
Name = FS_Swift_without_tmp
Include {
Plugin = "swift: user=root password=test1 URL=http://swift/auth/v1.0 \
include=container1/* exclude=*tmp"
}
}
This example is the same as the exclude
one above, but using
regexexclude
instead:
Fileset {
Name = FS_Swift_without_tmp
Include {
Plugin = "swift: include=container1/* regexclude=.*\\.tmp\\Z(?ms)" URL=http://swift/auth/v1.0 user=r1 password=p1"
}
}
In the example below, all objects that end with .pdf
inside the
container container1
will be backed up.
Fileset {
Name = FS_Swift_without_tmp
Include {
Plugin = "swift: user=r1 password=t1 URL=http://swift/auth/v1.0 \
include=container1/* regexinclude=.*\\.pdf\\Z(?ms)"
}
}
In the example below, all objects of all containers will be backed up.
Fileset {
Name = FS_Swift_everything
Include {
Options {
Compression = LZO
}
Plugin = "swift: user=r1 password=t1 URL=http://swift:8080/auth/v1.0"
}
}
In the example below, all objects of all containers will be backed up.
The password of the swift user root
will be taken from the file
/etc/swift.txt
file.
Fileset {
Name = FS_Swift_passfile
Include {
Plugin = "swift: user=r1 passfile=/etc/swift.txt URL=http://swift/auth/v1.0"
}
}
Go back to: Swift Object Plugin: Operations.