Hardlink/Deduplication Backups with Python
Project description
Hardlink Backups with Python
Currently python 3 is needed.
Try out:
setup
~$ virtualenv -p python3 PyHardLinkBackupEnv $ cd PyHardLinkBackupEnv/ ~/PyHardLinkBackupEnv $ source bin/activate (PyHardLinkBackupEnv) ~/PyHardLinkBackupEnv $ pip install -U pip (PyHardLinkBackupEnv) ~/PyHardLinkBackupEnv $ pip install -e git+https://github.com/jedie/PyHardlinkBackup.git#egg=PyHardlinkBackup (PyHardLinkBackupEnv) ~/PyHardLinkBackupEnv $ phlb migrate
Note: If you not use python 3.5+, then ‘scandir’ will be installed and so you need the python3-dev package…
start a backup run
~$ ./PyHardLinkBackupEnv/bin/phlb backup ~/Photo
or:
~$ source ./PyHardLinkBackupEnv/bin/activate (PyHardLinkBackupEnv) ~$ phlb backup ~/documents
run unittests
$ cd PyHardLinkBackupEnv/ ~/PyHardLinkBackupEnv $ source bin/activate (PyHardLinkBackupEnv) ~/PyHardLinkBackupEnv $ phlb test
some notes
Why in hell do you use django?!?
Well, just because of the great database ORM and the Admin Site ;)
How to use the django admin?
$ cd PyHardLinkBackupEnv/ ~/PyHardLinkBackupEnv $ source bin/activate (PyHardLinkBackupEnv) ~/PyHardLinkBackupEnv $ phlb runserver
And then just request ‘localhost’
What is ‘phlb’ ?!?
the phlb executable is the similar to django manage.py, but it always used the PyHardlinkBackup settings.
TODO
handle symlinks
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
PyHardLinkBackup-0.1.0a0.tar.gz
(14.2 kB
view hashes)
Built Distributions
Close
Hashes for PyHardLinkBackup-0.1.0a0-py3.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60fdc062bc9da47becd5d4a2e1796e551ee02f88545f5e8e8e9c6d03b685b8e2 |
|
MD5 | 8967fba8f5a57201edded70d47bb1456 |
|
BLAKE2b-256 | 47feaf120998cc68501760e746007c09b702c8b702641c95a7ec2ae69bcdefc5 |
Close
Hashes for PyHardLinkBackup-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac79fded79fdde3d76fa60f270f87b640932b86aba8e0b98ab5bad4383e20604 |
|
MD5 | 019f9021c37ee8c1cdeff53395df5ff0 |
|
BLAKE2b-256 | ff51b07d21183a07ffccd8cc80497a2d0dc6ebea4382b304a44a365019d49685 |