How to Bulk delete WHM accounts backups via SSH
Hi guys, I have about 28 backups which were generated from the daily Backups configuration from withing WHM. I want to delete all the backups, how do i do that?
#cd /backup/
#root@server2 [/backup]# ls -al
total 28
drwx--x--x 7 root root 4096 Mar 6 03:11 ./
drwxr-xr-x 19 root root 4096 Feb 29 23:52 ../
drwx--x--x 4 root root 4096 Feb 28 02:00 2016-02-28/
drwx--x--x 4 root root 4096 Mar 1 02:00 2016-03-01/
drwx--x--x 4 root root 4096 Mar 3 02:00 2016-03-03/
drwx--x--x 4 root root 4096 Mar 5 02:00 2016-03-05/
drwx--x--x 4 root root 4096 Mar 6 02:00 2016-03-06/
But navigating to "cd /backup/cpbackup/monthly" does not work. "No such directory"
WHM 54.0
Thanks
-
Hello, You would do # rm -rf /backup/2016*
That will delete all backups shown in your paste0 -
Hello, You would do
# rm -rf /backup/2016*
That will delete all backups shown in your paste
Thanks mate, It worked. ;)0 -
Hello :) I am happy to see the solution offered to you was helpful. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments