config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 4a7b96f4dfd7954d0eb5b0732222be2416f0cea2
parent 1cafaf935b940d2413c5f1c51988c1ba8405ae28
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sun,  3 Oct 2021 21:10:35 -0700

Rename backup3 script to backup and make minor changes

The backup script no longer assume /mnt as the backup destination
and uses the new script, mirror, instead of openrsync(1).

Diffstat:
Alocal/bin/bin/backup | 4++++
Dlocal/bin/bin/backup3 | 6------
Alocal/bin/bin/mirror | 4++++
3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/local/bin/bin/backup b/local/bin/bin/backup @@ -0,0 +1,4 @@ +#!/bin/sh +# Copyright 2021 Jacob R. Edwards + +exec mirror -v /home/ "$@" diff --git a/local/bin/bin/backup3 b/local/bin/bin/backup3 @@ -1,6 +0,0 @@ -#!/bin/sh -# Copyright 2021 Jacob R. Edwards -# License: GPLv3 -# Third revision of a simple backup script - -exec openrsync -av --del /home/ "${@:-/mnt}" diff --git a/local/bin/bin/mirror b/local/bin/bin/mirror @@ -0,0 +1,4 @@ +#!/bin/sh +# Copyright 2021 Jacob R. Edwards + +exec openrsync -a --del "$@"