This commit is contained in:
zhangzhanhong
2022-01-13 11:06:03 +08:00
commit 61a7287932
4 changed files with 159 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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();