Skip to main content

Backup home files to Harddrive on Linux

Project description

backup_to_harddrive

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.3.tar.gz (7.2 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.3-py2.py3-none-any.whl (8.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: backup_to_harddrive-0.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-1025-azure

File hashes

Hashes for backup_to_harddrive-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5f426bf9e343c64531231c53f6836a94906de40ebdb7d44bdd35a91cee93edcf
MD5 e0dbe831970697d4d5e55ba1548ec106
BLAKE2b-256 3a1942cdb8818110f83e9f6294c3322ba348ec35ff9502a27446a917c3b47b82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backup_to_harddrive-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-1025-azure

File hashes

Hashes for backup_to_harddrive-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8aebb3040fd78cd0fbccda9e5cff47157b8f3dfbc2058262d05511921bca23a7
MD5 512c5b61f07bd6107cfc9a291c5d4842
BLAKE2b-256 64f38224fcff27b3ed67103ba5c0def010810c8bff6d1113474918495cbb6e40

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