initial commit of a *whole bunch* of old Egressive shell scripts, used to make many people redundant.
This commit is contained in:
commit
43e0f5b59e
329 changed files with 31937 additions and 0 deletions
29
egrdbackup/postrun.sh.example-usb
Executable file
29
egrdbackup/postrun.sh.example-usb
Executable file
|
@ -0,0 +1,29 @@
|
|||
#/bin/bash -x
|
||||
#
|
||||
# This script runs before the main rdiffbackup script
|
||||
# useful for mounting USB drives
|
||||
#
|
||||
# returns
|
||||
# nothing if successful
|
||||
# 1 = error on umount command
|
||||
# 2 = parameters not defined
|
||||
# 3 = no file system mounted
|
||||
#
|
||||
#
|
||||
if [ $MOUNT_POINT"xxx" == "xxx" ]
|
||||
then
|
||||
echo "ERROR - Mount point not defined in initial.sh file" >> $LOGFILE
|
||||
fi
|
||||
#
|
||||
if mount | grep $MOUNT_POINT > /dev/null
|
||||
then
|
||||
if ! umount $MOUNT_POINT
|
||||
then
|
||||
echo "ERROR - Couldn't unmount $MOUNT_POINT" >> $LOGFILE
|
||||
|
||||
fi
|
||||
else
|
||||
echo "ERROR - no file system on $MOUNT_POINT" >> $LOGFILE
|
||||
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue