Multiple rsync one directory, issue?

P

postcd

Guest
Hello, please can i expect problems if i rsync one directory via ssh and im running multiple rsync instances?
i mean its executed by cron and it will execute rsync multiple times probably because it is alot of files and it wont complete during time another rsync is launched by cron

my rsync is: rsync -au

Thank you
 


Well, you can have many rsync sessions all using the same destination file system, with different sources (hundreds, at least) without problem. Are you running overlapping rsyncs with same source and dest? Don't know if it'll be a problem or not, but why not check to see if
Code:
pidof rsync
comes back empty before firing off the rsync command?
 
thx, i will modiffy my script to run rsync only if it do not runs already:

if [ "$(ps aux | grep rsync | grep $remoteserverip | grep $backuppath | wc -l)" == "0" ];then
ŕsync ***
fi

but i found currently running two identic rsync (same source same destination path..) not sure if i should kill one or both (it is rsync -au)
 
Last edited:
It won't hurt to kill them. Any incomplete files will get caught next time around.
 

Members online


Latest posts

Top