TsFTPBackup/examples/example1.tsl

14 lines
537 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

tsftpbackup := new TsFTPBackup();
tsftpbackup.username := 'username';
tsftpbackup.password := 'password';
tsftpbackup.dataInfo := array(
//说明:
//1、destPath分隔符可以是/或\(引号中为\\
//2、destPath必须以分隔符结束文件名与源一致
//3、recursive为是否递归备份子目录
('src':%% D:\temp\filename.txt%%,'destPath':'/temp/','recursive':1),
('src':%% D:\temp\*%%,'destPath':'/','recursive':1),
('src':%% D:\temp\aaa\*%%,'destPath':'/bbb/','recursive':0),
);
return tsftpbackup.Run();