Both rsync
and scp
will overwrite files that exist in the destination. The archive.sh
BASH script wraps rsync
to test if files exist before sending them to the destination, and provides ancillary services useful for digitizing documents.
Contents
|
Install bpkg if you have not already.
Important
If you are on macOS or BSD then you will need to default to GNU tools in your environment. You can check this by running
grep --version
, which will tell you whether it is BSD or GNUgrep
.
This is the recommended installation method.
Install the echo-eval dependency.
sudo bpkg install -g kj4ezj/ee@dim
Then, install this tool using bpkg
.
sudo bpkg install kj4ezj/archive
This does a global install so archive
should now be in your system PATH
.
Clone this repo locally with git
using your preferred method. Install project dependencies.
bpkg install
You can invoke the script directly from your copy of the repo.
Contributors need these tools installed.
Please sign your commits.
Clone this repo locally with git
using your preferred method, then install project dependencies.
bpkg install --dev
This project uses bashate and shellcheck for linting.
bpkg run lint
This invokes lint.sh
which contains the specific configuration for each permutation of linter and target file.
This repo uses GitHub Actions workflows for CI.
- archive.sh CI - initialize and lint the
archive.sh
project.
Important
The CI must pass before a pull request will be peer-reviewed.
You can run the GitHub Actions workflow(s) locally using act.
bpkg run act
Please make sure any pipeline changes do not break act
compatibility.
Legal Notice
This repo contains assets created in collaboration with a large language model, machine learning algorithm, or weak artificial intelligence (AI). This notice is required in some countries.