Skip to main content

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


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 details)

Uploaded Source

Built Distributions

PyHardLinkBackup-0.1.0a0-py3.4.egg (17.2 kB view details)

Uploaded Source

PyHardLinkBackup-0.1.0a0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file PyHardLinkBackup-0.1.0a0.tar.gz.

File metadata

File hashes

Hashes for PyHardLinkBackup-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 38d44e9132c5783f95418d8b7b9593f452622559e86cf820e7087bd5382639dd
MD5 5bec528bded812661da33e07c1d9ae58
BLAKE2b-256 714f145898d6543f6e554098178e53721205a8b5e1444f939448f4537993cef1

See more details on using hashes here.

File details

Details for the file PyHardLinkBackup-0.1.0a0-py3.4.egg.

File metadata

File hashes

Hashes for PyHardLinkBackup-0.1.0a0-py3.4.egg
Algorithm Hash digest
SHA256 60fdc062bc9da47becd5d4a2e1796e551ee02f88545f5e8e8e9c6d03b685b8e2
MD5 8967fba8f5a57201edded70d47bb1456
BLAKE2b-256 47feaf120998cc68501760e746007c09b702c8b702641c95a7ec2ae69bcdefc5

See more details on using hashes here.

File details

Details for the file PyHardLinkBackup-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for PyHardLinkBackup-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac79fded79fdde3d76fa60f270f87b640932b86aba8e0b98ab5bad4383e20604
MD5 019f9021c37ee8c1cdeff53395df5ff0
BLAKE2b-256 ff51b07d21183a07ffccd8cc80497a2d0dc6ebea4382b304a44a365019d49685

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page