Delete things in Network Recycle Bin older than X days?

Tell us your most wanted features from QNAP products.

Delete things in Network Recycle Bin older than X days?

Postby SlabbeDask » Fri Jul 22, 2011 8:07 pm

Hello

The "Network Recycle Bin" feature is very nice. But when a NAS is used by many people, it's not always so easy to manage. I can of course empty it, but maybe somone else just deleted a file by mistake?

It would be very cool if we could set it to autodelete files that has been in the recycle bin for a while. The date of a file shown when I look in the recycle bin, is when the file was last modified. I'm not sure if it's possible to find out when it was deleted. If it is, it would be very nice to have some cleanup. For example, every day, permanently delete everything in the recycle bin that has been there for more than a week.
SlabbeDask
First post
 
Posts: 1
Joined: Fri Jul 22, 2011 7:52 pm
NAS Model: NMP-1000

Re: Delete things in Network Recycle Bin older than X days?

Postby fantomas » Sat Jul 30, 2011 3:09 am

yes, and unix' ctime is perfect for such files
having 19 years of experience with administration of internet servers, OS (mostly linux) and applications.
fantomas
Been there, done that
 
Posts: 578
Joined: Mon Feb 07, 2011 5:40 am
Location: Bratislava, Slovakia
NAS Model: TS-419P+

Re: Delete things in Network Recycle Bin older than X days?

Postby anjoze » Tue Aug 02, 2011 9:32 pm

Yes, this is a VERY IMPORTANT feature.
Please update the FIND command!
The User Quota includes the Network Recycle Bin!! That is very bad because Users can't empty the Network Recycle Bin.

There is a lot of people installing the Optware package because of the find command. But there is a lot of problems trying to install that package too.

There is a detailed forum about this problem:
viewtopic.php?f=50&t=27823

Thanks
JA
anjoze
New here
 
Posts: 8
Joined: Fri Dec 11, 2009 10:50 pm
NAS Model: TS-239 Pro

Re: Delete things in Network Recycle Bin older than X days?

Postby johnripper » Sat Oct 08, 2011 11:05 pm

+1 for me!
johnripper
Know my way around
 
Posts: 115
Joined: Sun Aug 14, 2011 5:13 am
NAS Model: TS-439 Pro+

Re: Delete things in Network Recycle Bin older than X days?

Postby AssetBurned » Sun Oct 09, 2011 9:04 am

+1, having the network recycle bin is very useful but similar to bin's on local hard discs these folders should empty themselves after some time... or at least get rid of the old stuff.
Happy converter from a Drobo to a TS-659Pro+ now with a mix of discs in a RAID-5 (Hitachi, Samsung and WD) and a single disc that want to be replaced soon :-)
NAS: TS-659P+ | F/W: 3.6.1 Build 0302T | RAID-5 (I will check this later) + Single Disc (WD10EACS) | QPKG: IPKG, Pyload, AirVideo and some others | IPKG: nothing
N/W: Apple Airport Extreme Gigabit+802.11n, Airport Express 802.11n
AssetBurned
Getting the hang of things
 
Posts: 51
Joined: Sun Aug 28, 2011 7:46 pm
NAS Model: TS-559 Pro+

Re: Delete things in Network Recycle Bin older than X days?

Postby Trexx » Thu Oct 13, 2011 1:03 am

+1 for auto-empty of Network Recycle Bin after so many days.
----------------------------------------------------------------------
TS-459Pro II v3.6.0 Build 1228T, 4x Hitachi 2TB CoolSpin 0F12117 in a 6TB Raid-5.
----------------------------------------------------------------------
Trexx
Starting out
 
Posts: 23
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota
NAS Model: TS-459 Pro II

Re: Delete things in Network Recycle Bin older than X days?

Postby Fayez » Tue Oct 18, 2011 3:24 am

Trexx wrote:+1 for auto-empty of Network Recycle Bin after so many days.


+1
Fayez
Starting out
 
Posts: 23
Joined: Sat Oct 08, 2011 8:56 am
NAS Model: TS-859U-RP+

Re: Delete things in Network Recycle Bin older than X days?

Postby sl1000 » Tue Oct 18, 2011 3:32 am

+1
Try searching the perfect online manual, forum or the Wiki for answers before posting
### i've taken a qpkg development sabbatical ###
----------------------------------------------------------------------
TS-459Pro, 2x Samsung Spinpoint F2 HD154UI 1.5TB in Raid 1.
TS-212, 2x Seagate 500gb
SBS, SABNZB+, Sickbeard, CouchPotato, Subsonic, Dropbox, and more :)
----------------------------------------------------------------------
User avatar
sl1000
Moderator
 
Posts: 3520
Joined: Fri Nov 06, 2009 7:56 pm
Location: The Netherlands
NAS Model: TS-259 Pro+

Re: Delete things in Network Recycle Bin older than X days?

Postby Ignite » Fri Oct 21, 2011 10:20 pm

That would indeed be useful :)
Ignite
New here
 
Posts: 3
Joined: Thu Jun 23, 2011 4:32 pm
NAS Model: TS-659 Pro+

Re: Delete things in Network Recycle Bin older than X days?

Postby dxb » Thu Apr 19, 2012 4:46 am

You need to something!

I've just recovered my TS-410. With disk Full i couldn't login in any way (ssh, nfs, web, smb etc).

The network recycle bin is a wonderfull features but need some options like:
- Delete files after XX days
- select wich directories needs it
- EMERGENCY: If the space id totally full, auto delete file during reboot with the biggest "WARNING MESSAGE" (and stop all the service in order resolve missing space).


PS. To solve the problem:
I did it in Windows with Putty:
- open windows shell "ping -f 192.168.0.10"
- hard restart the nas
- ready to lounch putty SSH session
- when your nas start responding at pings, try try and retry to start ssh session
- after login you just have some seconds to DELETE some files
- use "rm -rf /share/Qmultimedia/xxx/ (se rm documentation )"
!!!!!!!!!!!! chose the right folder or you will lose everything!!!!!!!!!!!!!!!!!!!!!!!

After that i logged into the web interface and "empy recycle bin"
dxb
First post
 
Posts: 1
Joined: Wed Apr 18, 2012 12:24 am
NAS Model: SS-839 Pro

Re: Delete things in Network Recycle Bin older than X days?

Postby ChiefORZ » Fri Apr 27, 2012 4:47 am

+1

/push
ChiefORZ
New here
 
Posts: 6
Joined: Tue Apr 03, 2012 3:52 pm
NAS Model: TS-112

Re: Delete things in Network Recycle Bin older than X days?

Postby schumaku » Fri Apr 27, 2012 4:42 pm

Will become available soon with v3.6.3 8)
User avatar
schumaku
Guru
 
Posts: 22562
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Delete things in Network Recycle Bin older than X days?

Postby johnripper » Mon Apr 30, 2012 12:09 am

How do you know?
johnripper
Know my way around
 
Posts: 115
Joined: Sun Aug 14, 2011 5:13 am
NAS Model: TS-439 Pro+

Re: Delete things in Network Recycle Bin older than X days?

Postby pwilson » Mon Apr 30, 2012 12:54 pm

SlabbeDask wrote:Hello

The "Network Recycle Bin" feature is very nice. But when a NAS is used by many people, it's not always so easy to manage. I can of course empty it, but maybe somone else just deleted a file by mistake?

It would be very cool if we could set it to autodelete files that has been in the recycle bin for a while. The date of a file shown when I look in the recycle bin, is when the file was last modified. I'm not sure if it's possible to find out when it was deleted. If it is, it would be very nice to have some cleanup. For example, every day, permanently delete everything in the recycle bin that has been there for more than a week.


Simply ssh into the NAS and issue the following command as "admin":

Code: Select all
find -type f /share/MD0_DATA/Network\ Recycle\ Bin/* -mtime +7 -exec rm {} ;


Once you are satisfied that it works the way you want you can add it to the System "crontab" or "startup" scripts to run as often as desired. (The command above will delete files (whose "modify" time is) older than 7 days old. Adjust as necessary to get the desired effect). Test this command to ensure it does what you want, as you are explicitly telling it to delete your files.

To login to NAS usually requires using SSH protocol (Secure Shell protocol). If you're a Linux user, 'ssh' is probably already installed; If you are a Windows user, you'll need to provide your own. [Microsoft still does not provide an "ssh" client with Windows]. For those you that are looking for a Secure Shell Windows client you might want to take PuTTY for a spin. Here is a link: Download PuTTY.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: QTS 4.0.1 Build0606
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 4282
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: Delete things in Network Recycle Bin older than X days?

Postby fantomas » Sun Jun 24, 2012 12:40 am

anjoze wrote:Yes, this is a VERY IMPORTANT feature.
Please update the FIND command!
The User Quota includes the Network Recycle Bin!! That is very bad because Users can't empty the Network Recycle Bin.


This is logical, because, although in recycle bin, the files are still available, accessible and take space on the filesystem. That's why they count to the quota. You have to delete them from recycle bin to free up the filesystem (and thus the quota).
having 19 years of experience with administration of internet servers, OS (mostly linux) and applications.
fantomas
Been there, done that
 
Posts: 578
Joined: Mon Feb 07, 2011 5:40 am
Location: Bratislava, Slovakia
NAS Model: TS-419P+


Return to Features Wanted

Who is online

Users browsing this forum: No registered users and 4 guests