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.4.tar.gz (8.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.4-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for backup_to_harddrive-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a0477b16acf1a77a585ced28d27094685d12ed91730405d780c101a0bdefb88c
MD5 d49adf49b2d6f52ec79ec5b4b496f908
BLAKE2b-256 3371bfd5176aa167670396e9838b7552904ac00ef590ca37df183989a988ca6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for backup_to_harddrive-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8c014ee1fbc20ca1c9faf11f25fcca2d131111b8562a8fdaf6b6bfee8a0bdfc0
MD5 0d41ed6e0f91859645c4e01d6254e1d9
BLAKE2b-256 6a49a55ca3e9f4d5264e94f8ffe35b894ec2ee48a2fffb90a9d3748a83dd82f8

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