Skip to main content

Backup home files to Harddrive on Linux

Project description

backup_to_harddrive

latest-release coverage python-version

This script can typically be trigger when you want to backup files from your home folder to one or more backup path (e.g harddrives.)

Installation

  • On Ubuntu 22: pip install backup_to_harddrive
  • On Ubuntu 24: pipx install backup_to_harddrive

Targeted platform

Platform Implemented Validation
Linux (Ubuntu 22) ci.yaml
Linux (Ubuntu 24) u24-validation.yaml
Windows NA
macOS NA

Features included

  • Exclude folders by list
  • CLI switch on and off function (useful if you want to quickly reboot the computer without triggering a long backup)
  • CLI retrieval of last date of backup
  • Creation of quick restore shell script. This is useful to quickly restore part of a backup (for instance, only document, or music etc.) on another machine.

Configuration file

Create a config file in ~/.config/backup_to_harddrive/config.yaml. Follow this example

backup_configurations:
  my_backup:
    source: /home/foo
    list_of_harddrive:
      - /media/foo/hd1
      - /media/foo/hd2
    list_of_excluded_folders:
     - .cache
     - /home/foo/excluded
  backup_two:
    source: /home/bar
    list_of_harddrive:
      - /mnt/bar
    list_of_excluded_folders:
     - .config
     - .cache

Use cases

See USECASES.md

Contributing

See CONTRIBUTING.md

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

backup_to_harddrive-0.0.5.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

backup_to_harddrive-0.0.5-py2.py3-none-any.whl (9.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file backup_to_harddrive-0.0.5.tar.gz.

File metadata

  • Download URL: backup_to_harddrive-0.0.5.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.12 Linux/6.8.0-1027-azure

File hashes

Hashes for backup_to_harddrive-0.0.5.tar.gz
Algorithm Hash digest
SHA256 8f9f591b3c0658d313374b0b4fe3b4f5f0cbdd69f35c76a5fc8247968a50a7de
MD5 7dde2b530a5ef23187898f3a38a25c05
BLAKE2b-256 cda2c3f8de176f08e1333b0693aa17988a0778475e45ee43f1e481864130ebb9

See more details on using hashes here.

File details

Details for the file backup_to_harddrive-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for backup_to_harddrive-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e5177d939bdd3c6a223dac8f74243a32d6b485fc6b33dee1688e91895c363a5
MD5 56f7efcbaa841c38f47b1c9025cc611f
BLAKE2b-256 885fa20a656da29fa91f536bc5a7b7426ce145cf4acf8837f747ca30959487d8

See more details on using hashes here.

Supported by

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