Making backups

Make backups of your vault, to prevent any data losses.

In order to make backups of your vault, you can just make regular copies of the vault folder. Due to its design, it’s always in a consistent status and spreads the data into multiple files, so any external backup tool will work.

Here is the list of alternatives you can use:

  • Using the specific tool provided By PersonalMediaVault.
  • Using an standard tool, like rsync.
  • Using any other external tool, for example the ones provided by the main cloud storage providers.

In this tutorial we’ll explain how to use the backup tool provided by the PersonalMediaVault installation.

Using the backup tool from the launcher

When opening a vault from the launcher, you get a CLI interface with multiple commands.

In order to make a backup, use the backup command:

backup /path/to/backup/folder

In case the destination path is not empty, it will only copy the new files and update the ones that have been modified.

Using the backup tool from the terminal

You can also use the backup tool from the terminal, running the pmv-backup binary:

pmv-backup /path/to/vault /path/to/backup/folder

Re-encrypting

In case you got the encryption key leaked, and it’s no longer secure, you can make a backup re-encrypting everything with a brand new randomly generated encryption key.

In order to do that, use the --re-encrypt option:

pmv-backup /path/to/vault /path/to/backup/folder --re-encrypt

Note: The re-encryption process may take a very long time. Make sure to always use a secure password in order to prevent data leaks in the first place.

Last modified October 19, 2024: Update pmv-cli manual (2ecfe71)