Skip to main content

Backup and restore for linux

This library is targeting to help writing backup, restoration and configuration scripts with minimum effort.

Example Usages

Backing up folders or files

from linuxbackup import *
folder(['/var/www','/var/log'])
folder('/home/ubuntu/test',owner='ubuntu:ubuntu',permission='777')

Execute the script with argument backup or restore

python3 example.py backup
sudo python3 example.py restore

Executing shell

sh(cmd,check) is the same as subprocess.run(cmd,shell=True,check=check) shr is the same as sh except it only runs in RESTORE

sh('./test.sh')
shr('curl https://get.acme.sh | sh')

Editing php.ini

php=IniEditor('/etc/php/7.2/apache2/php.ini')
php['PHP']['upload_max_filesize']='20M'
php.write() #only executed in RESTORE mode

Metadata

Release files for linuxbackup 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linuxbackup 0.0.1
File Size Uploaded Provenance Actions
linuxbackup-0.0.1.tar.gz 2.3 kB Without provenance Details for linuxbackup-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for linuxbackup 0.0.1
File Interpreter ABI Platform Actions
linuxbackup-0.0.1-py3-none-any.whl Python 3 none any Details for linuxbackup-0.0.1-py3-none-any.whl

Total release size: 5.1 kB

Release files / linuxbackup-0.0.1.tar.gz

Download URL linuxbackup-0.0.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e7dd0ec83c1dce4b9dc55ffabd4c5162acf9fa112310e6be861ef7450a7cffa1
BLAKE2b-256 checksum
How to use checksums
9b229d538ff7bb316be5c79a8c82edadcbaff7fe62e329a04f44580af902152a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / linuxbackup-0.0.1-py3-none-any.whl

Download URL linuxbackup-0.0.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
752d4774d1a48dffedc56a39499fc1d925fd177f2ec202774926056d61fc6d6c
BLAKE2b-256 checksum
How to use checksums
8ff774b0e50ade0fe941afc902fb08bf8aac38ba18908e05fba93eef58fad646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Security for linuxbackup 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page