I have installed a 200gb NAS device to a server running CENTOS. Each night the control panel ( in this case DirectAdmin) backs up onto the NAS.
To access the NAS files, I currently login to the server via SSH and then access the NAS via FTP from the shell.
As the NAS fills up, I need to delete old backups.
The DirectAdmin control panel stores each backup in a directory named by creation date. Inside each directory is a tree of directories and compressed files.
FTP has no support for recursive delete of these backup directories. So to delete old backups and make space I have to navigate to each sub dir and delete the files. Very time consuming and not all practical.
Can anyone suggest a sane way to recursively delete these old backups via FTP?
I know it's not a DA related issue, but I thought that someone in the system forum might have been down this track before and know of a solution.
Thanks
Venezia
To access the NAS files, I currently login to the server via SSH and then access the NAS via FTP from the shell.
As the NAS fills up, I need to delete old backups.
The DirectAdmin control panel stores each backup in a directory named by creation date. Inside each directory is a tree of directories and compressed files.
FTP has no support for recursive delete of these backup directories. So to delete old backups and make space I have to navigate to each sub dir and delete the files. Very time consuming and not all practical.
Can anyone suggest a sane way to recursively delete these old backups via FTP?
I know it's not a DA related issue, but I thought that someone in the system forum might have been down this track before and know of a solution.
Thanks
Venezia