File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,13 +111,13 @@ def main():
111
111
#Cleanup old backups
112
112
max_backups = config .get ('maxBackupsKept' , 7 )
113
113
backups_list = get_backup_folders_sorted (backups_path )
114
- logger .debug ('List of folders available:\n {}' .format ('\n ' .join (backups_list )))
115
- for old in backups_list [0 :( len (backups_list )- max_backups )]:
114
+ logger .debug ('List of folders available:\n {}' .format ('\n ' .join ([ str ( b ) for b in backups_list ] )))
115
+ for old in backups_list [0 :max ( 0 , len (backups_list )- max_backups )]:
116
116
logger .warn (f'Removing old backup folder { old } ' )
117
117
try :
118
118
shutil .rmtree (old )
119
119
except Exception :
120
- logger .exception (f'Could not remove completely { old } ' )
120
+ logger .exception (f'Could not completely remove backup { old } ' )
121
121
122
122
123
123
if __name__ == '__main__' :
Original file line number Diff line number Diff line change 5
5
6
6
setuptools .setup (
7
7
name = "mdbackup" ,
8
- version = "0.1.2 " ,
8
+ version = "0.1.3 " ,
9
9
author = "Melchor Alejo Garau Madrigal" ,
10
10
author_email = "melchor9000@gmail.com" ,
11
11
description = "Small but customizable utility to create backups and store them in cloud storage providers" ,
You can’t perform that action at this time.
0 commit comments