Issue
I am trying to delete huge data(~ in TiBs) using rsync command. The command is running in background process with nohup. But still it is failing without successfully completing the process with the below mentioned error in log file.
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(544) [sender=3.0.6]
Please suggest what should be done in this case. This is the command that I am executing.
nohup rsync -a --delete empty_dir/ dir_to_be_deleted/ &
Solution
rsync doesn't work with nohup but using screen we can successfully run rsync in background. Below is the command
1) Open a screen
screen -S rsync
2) Run the rsync process
rsync -rvz --delete syncing_to_empty_dir/ folder_marked_for_deletion/
3) detach the screen
ctrl+A+d
This solved my problem and hopes will work for others too.
Answered By - Ruchika Sharma