You're reading the open-source Community docs. Plakar also offers Control Plane, the enterprise version. It's a virtual appliance with a web-based interface for centralized backup management across your infrastructure. View Control Plane docs →

Creating a Kloset Store

#

A Kloset store is Plakar’s immutable storage backend for backup data. This guide covers filesystem-based store creation. You can learn more in the Kloset deep dive article

Why you need a Kloset store

#

Before you can run any backup, you’ll need to create a Kloset store to store the data. It can be hosted anywhere that Plakar has an integration with a storage connector for e.g a local filesystem path, a remote S3 bucket, another server via SFTP, or other supported backends.

Create Store with Path

#
$ plakar at /var/backups create

Plakar prompts for an encryption passphrase. To avoid the prompt, set:

$ export PLAKAR_PASSPHRASE="my-secret-passphrase"
$ plakar at /var/backups create

Create Store with Alias

#

Configure store once, reference by alias in all commands:

$ plakar store add mybackups /var/backups passphrase=xxx

Use the configured store:

$ plakar at @mybackups create
$ plakar at @mybackups ls

Override a Store Path at Runtime

#

When using a config alias, you can override the root path of the store without changing the stored configuration. This is useful when the alias points to a base location and you want to target a subdirectory or an entirely different path for a specific operation.

Given an alias foobar configured as sftp://localhost/tmp:

# Use the configured root as-is
$ plakar at @foobar

# Append a relative subdirectory: resolves to sftp://localhost/tmp/etc
$ plakar at @foobar:etc

# Override with an absolute path: resolves to sftp://localhost/etc
$ plakar at @foobar:/etc

The same override syntax applies when specifying a backup source. Given an alias foobar configured as sftp://localhost/etc:

# Use the configured source root
$ plakar backup @foobar

# Append a relative path: resolves to sftp://localhost/etc/uucp
$ plakar backup @foobar:uucp

# Override with an absolute path: resolves to sftp://localhost/etc/uucp
$ plakar backup @foobar:/etc/uucp

Backing Up Multiple Directories

#

You can back up more than one directory in a single snapshot by passing multiple paths to plakar backup:

$ plakar backup /etc /home
Cross-connector sources

Currently, multi-directory backup requires all sources to use the same connector. Support for combining sources across connectors (e.g. a local path alongside s3 connector) is still in development.

Update store configuration

#
$ plakar store set mybackups passphrase=yyy
Passphrase Changes

Updating the passphrase only affects the configuration. Existing data created with the old passphrase requires the original passphrase to access.

Default Store Location

#

Without specifying a path, plakar create uses ~/.plakar:

$ plakar create

When to Use Aliases

#

Use aliases for:

  • Stores requiring credentials (S3, cloud storage)
  • Multiple stores with different configurations
  • Avoiding repetitive path specifications