mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
2024-10-08 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdautoback(8) that caused an error to be generated if the destination drive was already mounted. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -49,12 +49,14 @@ syslog.syslog(syslog.LOG_INFO,'Starting Rivendell backup to "'+mountpoint+'"')
|
||||
#
|
||||
# Mount backup device
|
||||
#
|
||||
Path(mountpoint).mkdir(parents=True,exist_ok=True)
|
||||
result=os.system(command='mount '+mountpoint)
|
||||
result=os.system(command='findmnt '+mountpoint)
|
||||
if(os.waitstatus_to_exitcode(result)!=0):
|
||||
syslog.syslog(syslog.LOG_ERR,'unable to mount backup drive')
|
||||
exit(1)
|
||||
os.system(command='sleep 5')
|
||||
Path(mountpoint).mkdir(parents=True,exist_ok=True)
|
||||
result=os.system(command='mount '+mountpoint)
|
||||
if(os.waitstatus_to_exitcode(result)!=0):
|
||||
syslog.syslog(syslog.LOG_ERR,'unable to mount backup drive')
|
||||
exit(1)
|
||||
os.system(command='sleep 5')
|
||||
|
||||
#
|
||||
# Dump database
|
||||
|
Reference in New Issue
Block a user