tstdir=/var/tmp/brt go: static helps loopback static: # bash -n is less stringent than shellcheck, but I haven't used some of these in a long time, and it's better than nothing. bash -n Backup.SRB bash -n Restore.SRB bash -n Backup.local bash -n Backup.remote # shellcheck Backup.SRB # shellcheck Restore.SRB shellcheck Backup.local shellcheck Backup.remote helps: ./Backup.remote --help ./Backup.local --help loopback: ssh-copy-id localhost ssh localhost "mkdir -p \"${tstdir}\"/backups" ./Backup.remote --source-dir /usr/local/bin --destination-dir "${tstdir}" --remote-host localhost install: ./install-file --file Backup.SRB --directory /usr/local/bin/. ./install-file --file Backup.local --directory /usr/local/bin/. ./install-file --file Backup.remote --directory /usr/local/bin/. ./install-file --file Backup.rsync --directory /usr/local/bin/. ./install-file --file Restore.SRB --directory /usr/local/bin/. ./install-package --brew-packages "gnu-tar zstd" ./install-package --deb-packages "libarchive-tools zstd" ./install-package --rpm-packages "libarchive-tools zstd" # untested cd mtee && make install cd reblock && make install cd deep-ssh && make install