Usage

Creating Backups

From the Console

The default configuration location is $HOME/.config/lp_backup.yml If you save it somewhere else, you can specify with -c

$ lp-backup backup

With a Script

Create a simple python script, for instance backup.py with the contents:

  from lp_backup import Runner

  run = Runner(path='/path/to/config/file.yaml')
  backup_file_name = run.backup()

Restoring from Backups

This will create a plain text csv file that you can import into lastpass or another password manager.

From the Console

As with backups, you can specify alternate configuration files with -c

$ lp-backup restore

With a Script

from lp_backup import Runner
run = Runner(path='/path/to/config/file.yml')
run.restore(backup_file_name, output_file_name)

It is crucial that you use the exact configuration file used to create the initial backup or your data might be garbled.