initial commit of file from CVS for smeserver-BackupPC on Sat Sep 7 20:10:07 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:10:07 +10:00
parent 2bf47720f7
commit 26a891845f
51 changed files with 2421 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
HOME=/root
PATH=/usr/bin:$PATH
# Backup config and log on the dedicated hard drive
mkdir -p /var/lib/BackupPC/etc
rsync -ahq --del /etc/BackupPC/ /var/lib/BackupPC/etc/
mkdir -p /var/lib/BackupPC/log
rsync -ahq --del /var/log/BackupPC /var/lib/BackupPC/log/
# Run a standard signal-event pre-backup
/sbin/e-smith/signal-event pre-backup