如何防止文件被修改或删除但仍然备份它们? [英] How can I prevent files to be modified or deleted but still backup them ?

查看:141
本文介绍了如何防止文件被修改或删除但仍然备份它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我有一个软件在C:\ temp本地生成测量数据。



以下是我的目标:



1)我只想创建数据的特定软件/应用程序,能够在C:\ temp <上写入br $> b $ b

2)我希望没有用户可以修改或删除数据



3)我想要移动(不复制)步骤1中的数据,移动到另一个网络存储。



任何有能力做到这一点的想法或者toold将受到高度赞赏。



我尝试了什么:



我尝试了几种工具没有做这个工作。

Hello Everyone,

I have a software producing measurement data locally on C:\temp.

Following are my goals:

1) I want only a specific software/application which creates the data, being able to write on C:\temp

2) I want NO USERS being able to modify or delete the data

3) I want to move (not copy) the data from step 1 , to be moved to another network storage.

Any idea or toold that is capable of doing this will be highly appreciated.

What I have tried:

I tried couple of tools that did not do the job.

推荐答案

引用:

1)我只想要创建数据的特定软件/应用程序,能够在C:\ temp上写入

1) I want only a specific software/application which creates the data, being able to write on C:\temp



不可能。您无法将权限分配给应用程序,仅分配给用户帐户。应用程序作为启动它们的用户运行并继承用户的权限。如果用户具有读/写文件的权限,那么应用程序也是如此。




Not possible. You cannot assign permissions to application, only to user accounts. Applications run as the user that launches them and inherit the permissions of the user. If the user has the permissions to read/write the files, so does the application.

引用:

2)我希望没有用户能够修改或删除数据

2) I want NO USERS being able to modify or delete the data



不可能,因为上面的原因。



Not possible, as for reason above.

Quote:

3)我想移动(不复制)步骤1中的数据,移动到另一个网络存储。

3) I want to move (not copy) the data from step 1 , to be moved to another network storage.



移动操作只能在同一个驱动器上完成。在这种情况下,文件系统会创建一个新文件指针,指向磁盘上的相同数据并删除原始指针。



如果是移动数据在驱动器和/或网络共享之间,始终复制数据并删除原始文件。没有移动这样的东西。





没有代码或工具可以在此列表中执行任何操作。问题在于您了解Windows中的安全性以及文件系统的工作方式。


A move operation can only be done on the same drive. In this case, a new file pointer is created by the file system to point to the same data on disk and the original pointer deleted.

In the case of move data between drives and/or network shares, the data is always copied and the original file deleted. There is no such thing as a "move".


There is no code nor tool that will do anything you want on this list. The problem is with your understanding of how security works in Windows and how file systems work.


这篇关于如何防止文件被修改或删除但仍然备份它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆