We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2053af5 commit 4510b69Copy full SHA for 4510b69
plogical/IncScheduler.py
@@ -657,11 +657,14 @@ def startNormalBackups(type):
657
continue
658
659
try:
660
-
661
- command = f'find cpbackups -type f -mtime +{destinationConfig["retention"]} -exec rm -f {{}} \\;'
662
- ssh.exec_command(command)
+ command = f'find cpbackups -type f -mtime +{jobConfig["retention"]} -exec rm -f {{}} \\;'
663
logging.writeToFile(command)
664
- except:
+ ssh.exec_command(command)
+ command = 'find cpbackups -type d -empty -delete'
665
+
666
+ except BaseException as msg:
667
+ logging.writeToFile(f'Failed to delete old backups, Error {str(msg)}')
668
pass
669
670
# Execute the command to create the remote directory
0 commit comments