Skip to content

Bralor/mega_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MEGA backup


This package is wrapper of mega.py that uploads your data to your Mega account.


Installation


Install the dependencies from requirements.txt:

pip install -r requirements.txt

note. for better user experience use the virtual enviroments.


Add configuration file


Create CONF file with correct paths (according to the example):

{
    "documents": "/path/to/documents",
    "projects": "/path/to/projects",
    "nvim": "/path/to/.config/nvim"
}

Name this file like my_backup.json and place him into the folder mega_backup/data.


Usage


You can use a little help:

$ python mega_backup/cli.py -h
usage: cli.py [-h] [-add_conf 'config_file'] ...

Backup your data (after creating config file) to the Mega account (with your account email address):

python mega_backup/cli.py --backup "your_email"

Add single backup path to your config file:

python mega.py --add_path "~/.nvim"

About

My own backup script wrapped around the cloud drive https://mega.nz

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages