自动复制Windows机器中存储的文件夹的脚本 [英] Script to copy automatically a folder stored in a windows machine

查看:71
本文介绍了自动复制Windows机器中存储的文件夹的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些数据必须存储在Windows计算机中,以允许使用它的程序正常工作.

该数据必须复制到备份中.

我在主linux服务器上只有一个磁带设备.

您将如何解决?

能够将数据从源Windows XP计算机复制到目标Linux服务器吗?

我需要可以放在脚本中的内容,并且不需要我在每个操作中手动引入密码.我想在执行备份过程之前自动执行该脚本(我已经知道如何在特定时间执行该脚本),因此必须无人照管.

有什么主意吗?

一如既往地先谢谢您! :thumbsup:

I have some data that must be stored inside a windows computer in order to allow the program that uses it to work.

That data must be copied in the backups.

I only have a tape device on the main linux server.

How would you solve that?

Being able to copy the data from the source windows xp machine to the destination linux server?

I need something that can be put inside a script and that doesn''t need me to introduce manually the password in each operation. I want to execute that script automatically before executing the backup process (I already know how to execute that in that specific moment) and therefore it must be unattended.

Any idea?

As always thank you in advance! :thumbsup:

推荐答案

Tricky ...我想我会共享Windows文件夹,并使用smbfs或cif将其挂载到linux服务器上,也许在安装或卸载之前之后.实际上,我认为过去可能不得不将PC备份到FreeBSD服务器时做过类似的事情.

此处的链接可能会有所帮助: http://linux.die.net/man/8/smbmount [^ ]
Tricky... I think I would share the Windows folder and mount it on the linux server using smbfs or cifs, maybe mounting and unmounting it before and after. In fact, I think I probably have done something like that in the past when I had to back up PCs to a FreeBSD server.

Here''s a link that might help: http://linux.die.net/man/8/smbmount[^]


例如,您是否可以使用Samba从Linux框中共享目录并使用该共享复制必要的数据?可以使用AT或计划任务在Windows端自动进行复制.在Unix服务器上,也许可以使用crontab安排实际的备份脚本.链接:
- Samba [ cron [
Could you use for example Samba to share a directory from the Linux box and copy the necessary data using that share? The copying could be perhaps automated at windows side using AT or Scheduled tasks. At the Unix server perhaps scheduling the actual backup script using crontab. Links:
- Samba[^]
- cron[^]


这篇关于自动复制Windows机器中存储的文件夹的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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