Backup download archive permissions

Discussion in 'ISPConfig 3 Priority Support' started by variable99, Feb 1, 2026.

  1. variable99

    variable99 Active Member HowtoForge Supporter

    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:

    image.png
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. variable99

    variable99 Active Member HowtoForge Supporter

    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.
     
    till likes this.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     

Share This Page