如何在常规时间间隔创建自动备份? [英] How Do I Create Automatic Backup At Regular Time Interval?

查看:101
本文介绍了如何在常规时间间隔创建自动备份?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为所有(.txt)文件创建一个自动备份,从一个目录到另一个目录,时间间隔为2分钟。这意味着它应该每两分钟创建一次自动备份

i使用过

XCOPY / E / HC:\ Users \Documents\BackupC:\ Users \Documents\ArchiveUp \。

i需要设置时间戳



有人可以帮我吗?

解决方案

用你的命令创建批处理文件并使用任务计划程序安排它

查看 http://stackoverflow.com/a/13173752/2558060 [ ^ ]


我会使用robocopy来完成这项任务。



DamithSL解决方案是一个很好的解决方案,你应该依靠内置的任务调度程序来定期启动你的批处理。



 robocopy /?


控制台中的
应该为您提供有关不同选项的大量详细信息。

Robocopy将允许您仅复制已修改的文件和更新的文件;已经复制和未修改的文件不会一次又一次地被复制,这取决于你的文件夹大小可以节省很多时间。



希望这有帮助。


i want to create an automatic backup for all (.txt) files from one directory to the other at time interval of 2min.It means it should create automatic backup for every two minutes
i have used
XCOPY /E /H "C:\Users\Documents\Backup" "C:\Users\Documents\ArchiveUp\".
i need to set time stamp

could anyone plese help me?

解决方案

create batch file with your commands and schedule it using task scheduler
check http://stackoverflow.com/a/13173752/2558060[^]


I would use robocopy for that task.

DamithSL solution is a good one, you should rely on built-in task scheduler to launch your batch regularly.

robocopy /?


in a console should give you plenty of details about differents options.
Robocopy will allow you to copy only modified and newer files; already-copied and unmodified files will not be copied again and again, which depending on your folder size can save a lot of time.

Hope this helps.


这篇关于如何在常规时间间隔创建自动备份?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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