Listing terminated users still in backup folder of cpanel server

by rajesh 2014-03-23 13:34:56

To list all the users that still have data in backup folder but have already been terminated.


cd /backup/cpbackup/weekly; for USERNAME in *; do if [ -f /var/cpanel/users/$USERNAME ]; then :; else echo $USERNAME; fi; done


The above code uses weekly backup. For daily backup check replace weekly with daily in above command.

Tagged in:

996
like
0
dislike
0
mail
flag

You must LOGIN to add comments