Category : rsync

I’m having trouble with sync files using " from dirsync import sync" I have 2 folder like this source_path = ‘C:Usersadminpythonfola’ target_path1 = ‘C:Usersadminpythonfolb’ The sync part is working fine sync(source_path, target_path1, ‘sync’) But before that, I want to check for out of sync files and folders inside the source, so I use this sync(source_path, ..

Read more

I try to configure a python script to run incremental backups but i think it doesnt work like it would be. Indeed, my incremental backup got the same size than the previous and same contents. this is my ptyhon script juste below (and cmd = rsync -av –exclude backups/ –link-dest=/appli/jenkins/backups/jenkins_2021-06-10-10-43-25-274629/ –delete /appli/jenkins /appli/jenkins/backups/jenkins_2021-06-10-10-44-41-719596) def incremental_backup(): ..

Read more

There are a large number of old linux devices. I am trying to write a program to automatically copy its configuration. shh public key authentication doesn’t work, but rsync is there. I cannot send a password to the opening session. I’m trying to use Popen, but I can’t seem to get the stdin sent to ..

Read more

I’m writing a Python automation script to upload files via rsync. Running this from Bash works /usr/bin/rsync -av -e “/usr/bin/ssh -i $PATH_TO_SSH_IDENTITY_KEY” $SRC [email protected]:/firstparam/secondparam However, running from Python gives this error rsync error: syntax or usage error (code 1) at main.c(1407) [client=3.0.6] This is the code in question calling rsync cmd = [‘/usr/bin/rsync’, ‘-av’, ‘-e’, ..

Read more