5333 private links
XigmaNAS is an embedded Open Source NAS (Network-Attached Storage) distribution based on the latest FreeBSD 11-2 Releases.
It supports sharing across multiple operating systems, including Windows, Apple, and UNIX-like systems. XigmaNAS is easy to set up in most home and enterprise environments and will allow you to manage and share large amounts of data easily across your network. XigmaNAS also incorporates many different streaming features for sharing your multimedia with other devices on your network.
XigmaNAS includes ZFS v5000 (Feature Flags) (RAID-Z, RAIDZ-2 & RAIDZ-3) Software RAID (0,1,5), JBOD, Disk Encryption, S.M.A.R.T. / Email Reports, includes the following protocols: CIFS/SMB (Samba), Active Directory Domain Controller (Samba), FTP, NFS, TFTP, AFP, RSYNC, Unison, iSCSI (initiator and target), HAST, CARP, Bridge, UPnP, and Bittorent, which are all highly configurable by using XigmaNAS's great web user interface.
#!/bin/sh
find /mnt/netzwerk/.recycle/* -atime +90 -exec rm -rf '{}' \;
find /mnt/netzwerk/.recycle/ -depth -type d -empty -exec rmdir {} \;
find /mnt/netzwerk2/.recycle/* -atime +90 -exec rm -rf '{}' \;
find /mnt/netzwerk2/.recycle/ -depth -type d -empty -exec rmdir {} \;
SYSTEM > ADVANCED > CRON
sh /mnt/netzwerk/delrecycle.sh
A nice feature of a Samba server is the optional recycle bin, which stores all files and folders that were deleted from a client on a network share. However the Samba recycle bin behaves different in comparison to the Desktop recycle bins of Windows, Mac OS X and Linux.
This posting describes the peculiarities of this Samba feature and how to use this function reasonably.
Peculiarities
The recycle bin of Samba is different to those on Desktop computers. The objects that were deleted on a network share by connected client computers does not appear in the user’s Desktop recycle bin but in a hidden folder on the share. The name can be specified in the Samba configuration, e.g. .recycle.
Every share has its own .recycle folder. All deleted files and folder of a share of all users are stored in this special folder. The deleted objects are stored under the user name while preserving the original path if the option keeptree is activated in Samba’s configuration
That means, if a user john deletes the file \nas\my-share\Documents\Text.txt it appears in \nas\my-share.recycle\john\Documents\Text.txt.