Source

rsync_backup / rsync_backup.py

Diff from to

rsync_backup.py

 import errno
 import subprocess
 import shutil
+from exec_cmd import exec_shell as cmd
 
 RSYNC = "rsync -avH --numeric-ids --link-dest=%(link_dst)s %(src)s/ %(dst)s/"
 
 
-cmd = subprocess.check_call
-
-
 def join(path, n, token):
     if n == 0:
         # there is only ONE "0" directory, no token appended
     cmd(RSYNC % dict(src=abspath(src),
                      dst=abspath(dst),
                      link_dst=abspath(link_dst)),
-        shell=True, **kw)
+        **kw)
 
 
 def dirshift(path, n, token):