FS-5C — Recycle bin advanced #207

Open
opened 2026-10-23 13:03:04 +00:00 by kyrylo · 0 comments
Owner

Samba and storage

  • Pre-create the shared bin directory in nas-directories.conf (d /var/srv/shares/public/.recycle 2770 root nas-share -)

Helper scripts

  • nas-recycle-list: per share, with original path, size, deletion time and version
  • nas-recycle-restore: validates the path (no .., no symlinks), recreates missing parent folders with the right mode, handles name collisions, and restores versions under the original name
  • nas-recycle-delete: permanently remove one entry
  • nas-recycle-empty: empty one share’s bin

Cockpit module nas-recycle

  • Overview of the shares the logged-in user has access to
  • Per share: all files in the bin with name, original path, size, deleted on, and days until permanent removal
  • Actions: restore, permanently delete, empty the bin (with confirmation)
  • Search and filter by name and date
  • Admin-only section: view and change the retention days via nas-recycle-set-retention, with a warning that lowering it deletes older files at the next purge
  • Users only see their own files in per-user bins
**Samba and storage** - [x] Pre-create the shared bin directory in nas-directories.conf (d /var/srv/shares/public/.recycle 2770 root nas-share -) **Helper scripts** - [x] nas-recycle-list: per share, with original path, size, deletion time and version - [x] nas-recycle-restore: validates the path (no .., no symlinks), recreates missing parent folders with the right mode, handles name collisions, and restores versions under the original name - [x] nas-recycle-delete: permanently remove one entry - [x] nas-recycle-empty: empty one share’s bin **Cockpit module nas-recycle** - [x] Overview of the shares the logged-in user has access to - [x] Per share: all files in the bin with name, original path, size, deleted on, and days until permanent removal - [x] Actions: restore, permanently delete, empty the bin (with confirmation) - [x] Search and filter by name and date - [x] Admin-only section: view and change the retention days via nas-recycle-set-retention, with a warning that lowering it deletes older files at the next purge - [x] Users only see their own files in per-user bins
kyrylo added this to the Sprint 2 milestone 2026-10-23 13:03:04 +00:00
kyrylo added this to the Kanban project 2026-10-23 13:03:05 +00:00
kyrylo self-assigned this 2026-10-23 13:03:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kyrylo/vorteq-nas-os#207
No description provided.