TrueNAS - Cheatsheet
Replication
Replication
Kill Active Replication Task
ps -aux | grep rsync
<PID> here is the process number in the second column of the ps output.
Code:
[root@freenasxl ~]# ps -aux | grep rsync
root 24116 11.1 0.1 36488 32400 - S 18:09 10:28.49 /usr/local/bin/rsync -a -z --delay-updates --delete-delay -r -t --bwlimit=2M -e ssh -p 22 -o BatchMode=yes -o StrictHostKeyChecking=yes /mnt/tank/backup USER@HOST:freenasxl/backup
root 24450 4.8 0.0 9864 4668 - S 18:28 1:54.93 /usr/local/bin/rsync -a -z --delay-updates --delete-delay -r -t --bwlimit=2M -e ssh -p 22 -o BatchMode=yes -o StrictHostKeyChecking=yes /mnt/tank/windows USER@HOST:freenasxl/windows
root 24117 1.8 0.1 51368 44920 - S 18:09 0:50.29 ssh -p 22 -o BatchMode=yes -o StrictHostKeyChecking=yes -l 19528 prio.ch-s012.rsync.net rsync --server -logDtprze.iLsfxC --bwlimit=2048 --delete-delay --delay-updates . freenasxl/backup
root 24451 0.8 0.1 47272 42328 - S 18:28 0:33.29 ssh -p 22 -o BatchMode=yes -o StrictHostKeyChecking=yes -l 19528 prio.ch-s012.rsync.net rsync --server -logDtprze.iLsfxC --bwlimit=2048 --delete-delay --delay-updates . freenasxl/windows
root 24115 0.0 0.0 4196 2008 - I 18:09 0:00.01 /usr/bin/lockf -s -t 0 -k /mnt/tank/backup /usr/local/bin/rsync -a -z --delay-updates --delete-delay -r -t --bwlimit=2M -e ssh -p 22 -o BatchMode=yes -o StrictHostKeyChecking=yes /mnt/tank/backup USER@HOST:freenasxl/backup
root 24449 0.0 0.0 4196 2008 - I 18:28 0:00.01 /usr/bin/lockf -s -t 0 -k /mnt/tank/windows /usr/local/bin/rsync -a -z --delay-updates --delete-delay -r -t --bwlimit=2M -e ssh -p 22 -o BatchMode=yes -o StrictHostKeyChecking=yes /mnt/tank/windows USER@HOST:freenasxl/windows
Here I have a couple of SSH Rsync tasks running.
If I wanted to stop the backup transfer, I would kill process 24116 with kill 24116
kill 24116