使用Network Recycle Bin启用映射网络驱动器上的回收站

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用Network Recycle Bin启用映射网络驱动器上的回收站相关的知识,希望对你有一定的参考价值。

参考技术A

在内网环境中我们经常会使用NAS或者Samba在Windows中映射网络驱动器,方便局域网用户实时共享交换数据。但当存储在网络或映射网络上的任何文件被删除时,该文件将被永久删除。它不会去到本地计算机回收站,也不会去到服务器的回收站,我通过google在mydigitallife和microsoft technet中搜索到很多方法,但针对不同操作系统且涉及到域用户管理的复杂情况下,单纯的依赖注册表修改可能已经支撑不住需求的膨胀了。在所有的方法中使用Network Recycle Bin可以轻松解决映射网络驱动器上的回收站。

2018年04月20日 - 初稿

阅读原文 - https://wsgzao.github.io/post/network-recycle-bin/

扩展阅读

Network Recycle Bin Tool - http://www.networkrecyclebin.info/index.html

映射驱动器不过是将本地驱动器连接到另一台计算机上特别分配的共享目录或文件夹。 一旦驱动器被映射,您就可以访问共享资源,您可以像对待您的系统本地一样对待它。可以将多个计算机驱动器映射到共享资源,并利用此网络空间。

当存储在网络或映射网络上的任何文件被删除时,该文件将被永久删除。 它不会去到本地计算机回收站,也不会去到服务器的回收站。 为了避免将来出现这种数据丢失情况,您可以在映射的网络驱动器上启用回收站。 按照以下给出的步骤在映射的网络驱动器上启用回收站.

注意:要验证此过程是否正常工作,请右键单击回收站并转至属性,并检查网络驱动器是否在回收站的位置列中列出。

需要注意的事情

这仅适用于通过映射的网络驱动器而不是UNC路径访问的文件。 我们举一个例子:如果你已经将\\server\\share映射到E:并从这个E:驱动器中删除了一些东西,那么它将会进入回收站。 但是,如果您浏览到\\server\\share并擦除文件,它将被永久删除。

https://forums.mydigitallife.net/threads/tip-network-recycle-bin.16974/

You may have noticed that when you delete a file stored on a network location or mapped network drive that the file is permanently deleted. It does not go to the local computer\'s recycle bin and does not go to the server\'s recycle bin. I have discovered a work-around that extends recycle bin coverage to include mapped network drives. The solution is not 100% perfect, but works extremely well and does not rely on Shadow Copies or 3rd-party software.

Here\'s how:

https://social.technet.microsoft.com/Forums/windows/en-US/a349801f-398f-4139-8e8b-b0a92f599e2b/enable-recycle-bin-on-mapped-network-drives

Just copy and paste the following into notepad
and save it as "Network Recycling Bin - auto make registry file.bat"

version 6.1.1.3

This version has been designed for the server usage. You should install it on the server to monitor shared folders. When network user will delete a shared file it will copy it to the "network recycle bin". You have not install any additional software on client machines.

version 5.2.3.8

When you delete a file stored on a network location or mapped network drive that the file is permanently deleted. It does not go to the local computer\'s recycle bin and does not go to the server\'s recycle bin .

How to enable a recycle bin for shared folders on a network ? There is the proper solution of restoring and securing your information even after deleting it - The Network Recycle Bin Tool allows you to recover deleted files .

Once you have this tool in your system, it will automatically keep a track of all the network deleted files and you can easily recover them. Instead of removing the files, this tool sends them directly to its predefined recycle bin folder.

There are various options to tune it up. For example: you can set size limits for files stored in the Network Recycle Bin , you can define the list of network drives or network folders to track deleted files.

Additionaly it offers you the Protect Files tool which prevents deletion of network files for specified folders according the file mask. Export and import functions help you to install software with same options on network machines. The password control disallows unauthorized access.

In the long run, losing your important network files and information accidentally is not an issue these days. Instead of getting anxious and worried, feel free to download network recycle bin tool from any reliable source and make sure that you have pre-installed this recovery tool .

Oracle Recycle Bin


开启回收站RECYCLEBIN=ON,默认开启

ALTER SYSTEM SET RECYCLEBIN=OFF SCOPE=SPFILE;


一、从回收站还原表

还原删除的表和从属对象。

如果多个回收站条目具有相同原始名称,则:

使用系统生成的唯一名称来还原特定版本

使用原始名称时,还原的表遵循后进先出(LIFO) 的规则

重命名原始名称(如果当前正在使用该名称)。

DROP TABLE employees;

FLASHBACK TABLE <table_name> TO BEFORE DROP [RENAME TO <new_name>];

相关数据字典:DBA_RECYCLEBIN


二、手动清空回收空间

说明:执行DBA_RECYCLEBIN这个需要as sysdba的权限

PURGE { TABLE <table_name> | INDEX <index_name> }

PURGE TABLESPACE <ts_name> [ USER <user_name> ]

PURGE [USER_|DBA_]RECYCLEBIN

手动删除某个表中,如果存在多张同名表,则删除最旧的一张


三、不使用回收站

DROP TABLE <table_name> [PURGE] ;

DROP TABLESPACE <ts_name>

[INCLUDING CONTENTS] ;

DROP USER <user_name> [CASCADE] ;


四、查看回收站

1、数据字典

select *

FROM dba_recyclebin

WHERE can_undrop = ‘YES‘;

2、SQL> SHOW RECYCLEBIN






以上是关于使用Network Recycle Bin启用映射网络驱动器上的回收站的主要内容,如果未能解决你的问题,请参考以下文章

$RECYCLE.BIN文件夹删除

不要启用 net.ipv4.tcp_tw_recycle

Active Directory Recycle Bin

ORA-38301:can not perform DDL/DML Over Object in Recycle Bin 11.2.0.4

1.Android recycleView万能分隔线 GridLayoutManager布局item左右间距均等(最易懂)

Linux基础-Linux系统回收站