Synctoy定时自动同步数据
2014-04-30 09:16
405 查看
Synctoy的简单命令行执行方式如下:
“[System Drive]\Program Files\SyncToy 2.1\SyncToyCmd.exe” –R MyFolderPair
直接在cmd窗口运行是要加上面的引号的,然后创建的MyFolderPair名称中间是不能有空格的
这样结合任务计划程序自由度就很高了,此方法的详细帮助文档如下:
SyncToy can be run from the command line to provide support for scheduling or automating folder pair execution. The command line executable by default is located at: [System Drive]\Program Files\SyncToy 2.1\SyncToyCmd.exe.
SyncToy does not support running multiple copies of SyncToyCmd.exe at the same time. If a second instance of SyncToyCmd.exe is executed, there will be no errors and the command will not be executed.
The parameters provided by this command line interface are described below:
-R Run all folder pairs that are marked as Active For Run All.
-R [Name] Run the named folder pair (only one folder pair can be specified).
Usage Examples:
SyncToyCmd -R MyFolderPair
SyncToyCmd -R
NOTE: There can be no space between the -R parameter and the MyFolderPair name.
It is also possible to manage folder pairs from the command line. Note: Folder pairs are managed through SyncToy.exe whereas scheduling is performed through SyncToyCmd.exe as described above.
SyncToy does not support running multiple copies of SyncToy.exe at the same time. If SyncToy is already running in in the Task Bar, and a second instance of SyncToy.exe is launched with or without any command line parameters, it will simply bring the already
running instance into focus and no errors will be reported.
The parameters associated with SyncToy.exe are described below:
-d(left=, right=, name=,operation=Synchronize|Echo|Contribute, [check=yes|no], excluded=,included=) Creates a new folder pair with the specified options:
left – mandatory, provide absolute path for left folder
right – mandatory, provide absolute path for right folder
name – mandatory, provide name of folder pair
operation – mandatory, specifiy action type for this folder pair
check – optional, specify whether file contents should be checked for file matching, default is no
excluded – optional, specifies exclude filter for files, defaults to none
included – optional, specifies include filter for files, defaults to all
-u Delete one or more folder pairs, no user data will be deleted
-? Display Help
Sample Usage:
SyncToy -d(left=e:\,right=c:\Pictures, name=MyPictures,operation=contribute)
SyncToy -uMyPictures
来自:http://blog.sina.com.cn/s/blog_80893c990100xl5d.html
“[System Drive]\Program Files\SyncToy 2.1\SyncToyCmd.exe” –R MyFolderPair
直接在cmd窗口运行是要加上面的引号的,然后创建的MyFolderPair名称中间是不能有空格的
这样结合任务计划程序自由度就很高了,此方法的详细帮助文档如下:
Run SyncToy from a Command Line
SyncToy can be run from the command line to provide support for scheduling or automating folder pair execution. The command line executable by default is located at: [System Drive]\Program Files\SyncToy 2.1\SyncToyCmd.exe.SyncToy does not support running multiple copies of SyncToyCmd.exe at the same time. If a second instance of SyncToyCmd.exe is executed, there will be no errors and the command will not be executed.
The parameters provided by this command line interface are described below:
-R Run all folder pairs that are marked as Active For Run All.
-R [Name] Run the named folder pair (only one folder pair can be specified).
Usage Examples:
SyncToyCmd -R MyFolderPair
SyncToyCmd -R
NOTE: There can be no space between the -R parameter and the MyFolderPair name.
It is also possible to manage folder pairs from the command line. Note: Folder pairs are managed through SyncToy.exe whereas scheduling is performed through SyncToyCmd.exe as described above.
SyncToy does not support running multiple copies of SyncToy.exe at the same time. If SyncToy is already running in in the Task Bar, and a second instance of SyncToy.exe is launched with or without any command line parameters, it will simply bring the already
running instance into focus and no errors will be reported.
The parameters associated with SyncToy.exe are described below:
-d(left=, right=, name=,operation=Synchronize|Echo|Contribute, [check=yes|no], excluded=,included=) Creates a new folder pair with the specified options:
left – mandatory, provide absolute path for left folder
right – mandatory, provide absolute path for right folder
name – mandatory, provide name of folder pair
operation – mandatory, specifiy action type for this folder pair
check – optional, specify whether file contents should be checked for file matching, default is no
excluded – optional, specifies exclude filter for files, defaults to none
included – optional, specifies include filter for files, defaults to all
-u Delete one or more folder pairs, no user data will be deleted
-? Display Help
Sample Usage:
SyncToy -d(left=e:\,right=c:\Pictures, name=MyPictures,operation=contribute)
SyncToy -uMyPictures
来自:http://blog.sina.com.cn/s/blog_80893c990100xl5d.html
相关文章推荐
- spring 定时任务(自动同步数据)
- 定时同步服务器上的数据
- C# 中web如何定时同步数据
- linux系统间通过cron和ssh实现数据的自动定时传输
- SQL Server双服务器架设并数据自动同步教程
- duBand源码分析-数据自动同步部分
- rsync+inotify实现数据自动同步
- 服务自动拉起,定时日志清理,数据统计的shell脚本
- MongoDB副本集配置系列十一:MongoDB 数据同步原理和自动故障转移的原理
- 定时调用WebService方法同步数据
- Android 如何修改自动同步数据的默认开关 M
- 定时同步sql server数据到mysql
- Elasticsearch安装及自动同步mysql数据库数据
- Android:如何关/启 自动同步(Auto Sync )和背景数据(Background data )
- centos crontab定时器 执行脚本 自动备份文件 同步数据
- 服务器时间定时自动同步
- 定时自动备份数据库
- mysql 在不同数据库中创建定时同步任务,将每分钟数据转每5分钟统计
- Oracle中通过Job实现定时同步两个数据表之间的数据
- 自动生成数据同步存储过程的存储过程