initial commit of file from CVS for smeserver-BackupPC on Sat Sep 7 20:10:07 AEST 2024
This commit is contained in:
13
root/usr/share/BackupPC/bin/BackupPC_SME_pre-backup
Normal file
13
root/usr/share/BackupPC/bin/BackupPC_SME_pre-backup
Normal 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
|
||||
|
Reference in New Issue
Block a user