From 6cf4d49bc3a9f9c05db1613bf5b1ec016b3109e1 Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 6 Aug 2019 23:24:25 -0700 Subject: [PATCH] Bugfix -> When removing the diff folder after a full backup, only remote ssh destination was supported --- mikes-backup | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/mikes-backup b/mikes-backup index 13cba4a..3a0fe52 100755 --- a/mikes-backup +++ b/mikes-backup @@ -376,12 +376,15 @@ class MikesBackup: self.log("Rsync seems to have finished successfully") self.log("Because a full backup has succeeded, will now delete any differential backups") - self.execute_remote_ssh_command( - [ - "rm", - "-rfv", - self.make_remote_differential_backup_path_base() - ]) + args_remove_differentials = [ + "rm", + "-rfv", + self.make_remote_differential_backup_path_base() + ] + if self.is_using_ssh(): + self.execute_remote_ssh_command(args_remove_differentials) + else: + self.execute_command(args_remove_differentials) self.log("Finished deleting old differentials") #