14 lines
352 B
Plaintext
14 lines
352 B
Plaintext
|
#!/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
|
||
|
|