Script to create local backups from Lastpass
Project description
# Lastpass Backup
[![Build Status](https://travis-ci.org/rickh94/lp_backup.svg?branch=master)](https://travis-ci.org/rickh94/lp_backup)
[![Documentation Status](https://readthedocs.org/projects/lastpass-local-backup/badge/?version=latest)](https://lastpass-local-backup.readthedocs.io/en/latest/?badge=latest)
Easily backup data from lastpass to your own storage.
## Installation
You first need to install the [lastpass commandline
tool](https://github.com/lastpass/lastpass-cli) for your platform.
It is used internally for accessing the lastpass api.
Then clone the repo and run `python3 setup.py install`
Install [fs.webdavfs](https://github.com/PyFilesystem/webdavfs) for webdav support.
## Usage
```python
from lp_backup import Runner
# create backup runner
example_backup_runner = Runner("/home/YOUR_USER/.config/lp_backup.yml")
# run backup
backup_file_name = example_backup_runner.backup()
print(backup_file_name)
# restore backup to /tmp/example-full-restore.csv (which is PLAIN TEXT, be sure to delete after use)
backup_file_name.restore(backup_file_name, "/tmp/test-full-restore.csv")
```
[![Build Status](https://travis-ci.org/rickh94/lp_backup.svg?branch=master)](https://travis-ci.org/rickh94/lp_backup)
[![Documentation Status](https://readthedocs.org/projects/lastpass-local-backup/badge/?version=latest)](https://lastpass-local-backup.readthedocs.io/en/latest/?badge=latest)
Easily backup data from lastpass to your own storage.
## Installation
You first need to install the [lastpass commandline
tool](https://github.com/lastpass/lastpass-cli) for your platform.
It is used internally for accessing the lastpass api.
Then clone the repo and run `python3 setup.py install`
Install [fs.webdavfs](https://github.com/PyFilesystem/webdavfs) for webdav support.
## Usage
```python
from lp_backup import Runner
# create backup runner
example_backup_runner = Runner("/home/YOUR_USER/.config/lp_backup.yml")
# run backup
backup_file_name = example_backup_runner.backup()
print(backup_file_name)
# restore backup to /tmp/example-full-restore.csv (which is PLAIN TEXT, be sure to delete after use)
backup_file_name.restore(backup_file_name, "/tmp/test-full-restore.csv")
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lp_backup-0.1.tar.gz
(4.8 kB
view hashes)