X-Git-Url: https://git.distorted.org.uk/~mdw/rsync-backup/blobdiff_plain/8e40e6cfc8aa260bea12a5e89ce14a2ff9a78a17..a8447303fe9883920c783acae85c76caeaa78c32:/rsync-backup.in diff --git a/rsync-backup.in b/rsync-backup.in index 7519b12..ac9cfdc 100644 --- a/rsync-backup.in +++ b/rsync-backup.in @@ -149,6 +149,33 @@ hostpath () { } ###-------------------------------------------------------------------------- +### Database operations. + +INDEXDB=@pkglocalstatedir@/index.db + +insert_index () { + host=$1 fs=$2 date=$3 vol=$4 + + if [ -f "$INDEXDB" ]; then + sqlite3 "$INDEXDB" <