diff options
| author | grothedev <grothedev@gmail.com> | 2026-01-10 18:01:40 -0500 |
|---|---|---|
| committer | grothedev <grothedev@gmail.com> | 2026-01-10 18:01:40 -0500 |
| commit | e757d3020571cb139d9480f97e1b0fa86222660e (patch) | |
| tree | ed2c03ec30cab299f04c126e959d056e85e90691 /betterbackup.sh | |
| parent | faaa4ad4f5ad507e3b3f8a270b7cf5a15080d817 (diff) | |
some updates. yes some stuff from claude code
Diffstat (limited to 'betterbackup.sh')
| -rwxr-xr-x | betterbackup.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/betterbackup.sh b/betterbackup.sh deleted file mode 100755 index 36232e4..0000000 --- a/betterbackup.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -#a simple backup script that doesn't require to write to network address - -if [[ $# -lt 2 ]]; then - echo 'provide source and destination' -fi - - -LOGF=/var/log/betterbackup.log -src_path=${1} -dest_path=${2} -if [[ ${3} ]]; then - rsargs="--exclude-from=${HOME}/.config/rsync-exclude.txt ${3}" -else - rsargs="--exclude-from=${HOME}/.config/rsync-exclude.txt " -fi - -CMD="rsync -av ${rsargs} --progress --update --protect-args -e ssh --log-file=${LOGF} ${src_path} ${dest_path}" -echo "running '${CMD}' in 3 seconds" -sleep 1 -echo "2 seconds" -sleep 1 -echo "1 second" -sleep 1 - -d=`date +%Y%m%d_%H%M%S` -echo "starting backup at ${d}" >> ${LOGF} -${CMD} -d=`date +%Y%m%d_%H%M%S` -echo "backup complete at ${d}" |
