I have a script that runs backup of system files via tar as a cronjob for my server. Every time the script is being fired off, it completed the task as successful. All backups were tested and appeared to be working and not corrupted.
But, my system stalls and froze for a while and it lags my commands as slow. It is same condition as when I ran graphic desktop. So, why does system stall after tar run?
This is command in my script on crontab for tar backup run.
tar -zcvf tarbackup.tar.gz --one-file-system \ --exclude=/run \ --exclude=/tmp \ --exclude=/home \ --exclude=*.system.tar.gz \ --exclude=*.home.tar.gz \ /
To solve that issue, I had to reboot every time. I wish to understand why it happens, so I can explore the option of running tar backup without having to reboot the system.