When user orders backup download, that archive is put under /backup in his root dir. User download it and when wants to remove that file from /backup he can't - permission error. Backup folder: Code: drwxr-x--- 2 root client493 4096 Feb 1 08:41 backup Inside backup folder: Code: drwxr-x--- 2 root client493 4096 Feb 1 00:16 . drwxr-xr-x 20 root root 4096 Nov 13 11:49 .. -rw-r----- 1 web462 client493 345136192 Feb 1 00:16 web462_2026-01-31_01-30.tar.gz Error from FTP client:
I guess we can't change the permissions for security reasons, so I will have to add a button in the GUI to remove the backup.
There is another approach, easier to implement: since backup download usually is one-time action, backup file can be removed automatically after X time. So, it can be configurable cron task: "remove backup archives from download after 2 hours". No need for button, just cleanup. Now I manually execute bash script which scan /backup and look for 4 hours old archives. If older then 4 hours - delete. If user needs it again - he orders download.
Yes, that's indeed a better approach. Especially as users would forget to delete it otherwise and then wonder why they ran out of space.