Skip to content

Conversation

@sohmc
Copy link
Owner

@sohmc sohmc commented Jan 4, 2025

This PR will merge changes I made to @MichaelYochpaz's version of the Backup Script into the main branch. As he has stated that he is no longer maintaining this code, I have volunteered to take it up as the majority of his code meets my needs and with the added changes, meets all my needs.

The major features I implemented:

  • Added feature to set your own date format via -d argument, followed by a valid format
  • Added feature to do incremential backups via the -l argument followed by an integer zero or greater
  • Script will look for a default exclude list, which is provided within this repo that's been shamelessly copied from Timeshift
  • Relatedly, the script will look for an exclude list for your dataset. Exclude files are stored in $HOME/.config/tar/$DATASET_NAME.exclude. Dataset name is derived by replacing slashes in the dataset name with a dash, removing any dots or dashes in the beginning of the dataset name. Best way to use this is to provide the absolute path for the dataset.

sohmc added 23 commits December 22, 2024 15:20
And forgot to update the usage in README
And removed leading slash in exclude since tar uses relative paths
@sohmc sohmc merged commit a726bf3 into main Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants