mirror of
https://github.com/deajan/obackup.git
synced 2024-11-12 19:03:42 +01:00
Minor fixes
This commit is contained in:
parent
cfb151da4e
commit
eb0bb0a3f8
@ -1,6 +1,8 @@
|
||||
## FUTURE IMPROVEMENTS
|
||||
|
||||
- Exit trap function must also stop child processes
|
||||
- Rewrite rsync exclude patterns using \"pattern\" instead of escaped chars
|
||||
- Obackup should run on Cygwin
|
||||
|
||||
## Known issues
|
||||
|
||||
@ -8,8 +10,12 @@
|
||||
|
||||
## Latest changelog
|
||||
|
||||
- Improved verbose output
|
||||
- Improved dryrun output
|
||||
- Improved remote connecivity detection
|
||||
- Fixed a typo in configuration file
|
||||
- 18 Aug. 2013: Now v1.84 RC2
|
||||
- Added personalized log file option
|
||||
- Added possibility to change default logfile
|
||||
- Simplified dryrun (removed dryrun function and merged it with main function)
|
||||
- Simplified Init function
|
||||
- Added --stat switch to rsync execution
|
||||
|
19
obackup.sh
19
obackup.sh
@ -3,7 +3,7 @@
|
||||
###### Remote (or local) backup script for files & databases
|
||||
###### (L) 2013 by Orsiris "Ozy" de Jong (www.netpower.fr)
|
||||
OBACKUP_VERSION=1.84preRC3
|
||||
OBACKUP_BUILD=2408201302
|
||||
OBACKUP_BUILD=2508201301
|
||||
|
||||
DEBUG=no
|
||||
SCRIPT_PID=$$
|
||||
@ -797,7 +797,7 @@ function FilesBackup
|
||||
child_pid=$!
|
||||
WaitForTaskCompletion $child_pid $SOFT_MAX_EXEC_TIME_FILE_TASK $HARD_MAX_EXEC_TIME_FILE_TASK
|
||||
retval=$?
|
||||
if [ $verbose -eq 1 ]
|
||||
if [ $verbose -eq 1 ] && [ -f /dev/shm/obackup_rsync_output_$SCRIPT_PID ]
|
||||
then
|
||||
Log "List:\n$(cat /dev/shm/obackup_rsync_output_$SCRIPT_PID)"
|
||||
fi
|
||||
@ -805,10 +805,10 @@ function FilesBackup
|
||||
if [ $retval -ne 0 ]
|
||||
then
|
||||
LogError "Backup failed on remote files."
|
||||
if [ -f /dev/shm/obackup_rsync_output_$SCRIPT_PID ]
|
||||
then
|
||||
LogError "$(cat /dev/shm/obackup_rsync_output_$SCRIPT_PID)"
|
||||
fi
|
||||
if [ $verbose -eq 0 ] && [ -f /dev/shm/obackup_rsync_output_$SCRIPT_PID ]
|
||||
then
|
||||
LogError "$(cat /dev/shm/obackup_rsync_output_$SCRIPT_PID)"
|
||||
fi
|
||||
else
|
||||
Log "Backup succeeded."
|
||||
fi
|
||||
@ -824,10 +824,15 @@ function FilesBackup
|
||||
child_pid=$!
|
||||
WaitForTaskCompletion $child_pid $SOFT_MAX_EXEC_TIME_FILE_TASK $HARD_MAX_EXEC_TIME_FILE_TASK
|
||||
retval=$?
|
||||
if [ $verbose -eq 1 ] && [ -f /dev/shm/obackup_rsync_output_$SCRIPT_PID ]
|
||||
then
|
||||
Log "List:\n$(cat /dev/shm/obackup_rsync_output_$SCRIPT_PID)"
|
||||
fi
|
||||
|
||||
if [ $retval -ne 0 ]
|
||||
then
|
||||
LogError "Backup failed on remote files."
|
||||
if [ -f /dev/shm/obackup_rsync_output_$SCRIPT_PID ]
|
||||
if [ $verbose -eq 0 ] && [ -f /dev/shm/obackup_rsync_output_$SCRIPT_PID ]
|
||||
then
|
||||
LogError "$(cat /dev/shm/obackup_rsync_output_$SCRIPT_PID)"
|
||||
fi
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
##### Obackup ssh command filter build 2306201301
|
||||
##### This script should be located in /usr/local/bin in the remote system that will be backed up
|
||||
##### Obackup / Osync ssh command filter build 2306201301
|
||||
##### This script should be located in /usr/local/bin in the remote system that will be backed up / synced
|
||||
##### It will filter the commands that can be run remotely via ssh.
|
||||
##### Please chmod 755 and chown root:root this file
|
||||
|
||||
@ -14,7 +14,7 @@ CMD1=
|
||||
CMD2=
|
||||
CMD3=
|
||||
|
||||
LOG_FILE=~/.ssh/obackup_ssh_filter.log
|
||||
LOG_FILE=~/.ssh/ssh_filter.log
|
||||
|
||||
function Log
|
||||
{
|
Loading…
Reference in New Issue
Block a user