Backup Rsync Problem

NethServer Version: 7.9.2009
Module: Backup


I have a problem with rsync, i have this error if i try to restart the backup “Background task in progress: a data backup is running”

How can i stop the process and try to restart?


You could try to get the pid of rsync with top and kill it.
Similar to killing duplicity at the following thread.

You can also launch:

ps ax | grep rsync

get the pid and kill it with

kill -SIGTERM pidnumber

This is the output of the command “ps ax | grep rsync”"

17352 ? Ss 0:00 /bin/bash /sbin/e-smith/backup-data-wrapper bck_ns_rsync
17356 ? S 0:00 /bin/bash /sbin/e-smith/backup-data-wrapper bck_ns_rsync
17357 ? D 0:00 /usr/bin/perl -w /sbin/e-smith/backup-data -b bck_ns_rsync
17358 ? S 0:00 tee /var/log/backup/backup-bck_ns_rsync-202012220926.log
23125 ? DN 0:11 /usr/bin/duc index -x --check-hard-links / -d /var/cache/duc/duc.db --fs-exclude=sysfs,proc,devtmpfs,tmpfs --exclude=backup-bck_ns_restic --exclude=backup-bck_ns_rsync
31241 ? Ss 0:00 /bin/bash /sbin/e-smith/backup-data-wrapper bck_ns_rsync
31244 ? S 0:00 /bin/bash /sbin/e-smith/backup-data-wrapper bck_ns_rsync
31245 ? S 0:00 /usr/bin/perl -w /sbin/e-smith/backup-data -b bck_ns_rsync
31246 ? S 0:00 tee /var/log/backup/backup-bck_ns_rsync-202012212200.log
31672 ? S 0:00 /usr/bin/perl -w /etc/e-smith/events/actions/backup-data-rsync bck_ns_rsync
31703 ? S 0:00 bash /usr/bin/rsync_tmbackup -p 22 --rsync-set-flags -D --numeric-ids --links --hard-links --one-file-system --times --recursive --perms --owner --group --stats --human-readable --files-from=/tmp/lIEE0ISYCb --exclude-from=/tmp/_5zMlr3rUg / /mnt/backup-bck_ns_rsync/srv01
31752 ? S 8:41 rsync -D --numeric-ids --links --hard-links --one-file-system --times --recursive --perms --owner --group --stats --human-readable --files-from=/tmp/lIEE0ISYCb --exclude-from=/tmp/_5zMlr3rUg --log-file /root/.rsync_tmbackup/2020-12-21-220357.log – / /mnt/backup-bck_ns_rsync/srv01/2020-12-21-220357/
31753 ? S 0:25 rsync -D --numeric-ids --links --hard-links --one-file-system --times --recursive --perms --owner --group --stats --human-readable --files-from=/tmp/lIEE0ISYCb --exclude-from=/tmp/_5zMlr3rUg --log-file /root/.rsync_tmbackup/2020-12-21-220357.log – / /mnt/backup-bck_ns_rsync/srv01/2020-12-21-220357/
31754 ? D 11:20 rsync -D --numeric-ids --links --hard-links --one-file-system --times --recursive --perms --owner --group --stats --human-readable --files-from=/tmp/lIEE0ISYCb --exclude-from=/tmp/_5zMlr3rUg --log-file /root/.rsync_tmbackup/2020-12-21-220357.log – / /mnt/backup-bck_ns_rsync/srv01/2020-12-21-220357/
31764 pts/0 S+ 0:00 grep --color=auto rsync

Which process i have to close ?



I not sure is rsync or restic still running, but i still have the alert Background task in progress: a data backup is running

What can i do for fix this issue?


What task do you have closed? I would try to close all tasks with backup-data in the name.
But perhaps @federico.ballarini has some more infos here.

I think you have to close all processes. It seems they are all related to backup actions.
Or reboot your server :slight_smile:

Without having an opinion on the solution, the small utility htop is my friend to KILL the parent of a tree of processes :grinning: (yum install htop)

run htop and press F5 (Tree)

Then select the parent (base of tree) and press F9 (Kill) chose (default) 15 SIGTERM on the left and the parent and all it’s children are killed after pressing enter.

NOTE: Be sure you know what you are doing and selected the right process. Getting it wrong can freeze your system


i reboot the server and i start manually the rsync backup, is possible to see what rsync is doing during the backup?


you could try with

rsync -v

v is for verbose

Here you can see some examples:

1 Like

You can follow the log: it’s the file which grows in /var/log/backup/.