diff --git a/simple_backup/simple_backup.py b/simple_backup/simple_backup.py index 15fec5d..603ca4a 100755 --- a/simple_backup/simple_backup.py +++ b/simple_backup/simple_backup.py @@ -559,9 +559,7 @@ class Backup: rsync = f'/usr/bin/rsync {self.options} --link-dest="{self._last_backup}" --exclude-from=' +\ f'{self._exclude_path} --files-from={self._inputs_path} / "{self._server}{self._output_dir}"' - euid = os.geteuid() - - if euid == 0 and self.ssh_keyfile is not None: + if self.ssh_keyfile is not None: rsync = f'{rsync} -e \'ssh -i {self.ssh_keyfile} -o StrictHostKeyChecking=no\'' elif self._password_auth and which('sshpass'): rsync = f'{rsync} -e \'sshpass -e ssh -l {self.ssh_user} -o StrictHostKeyChecking=no\''