简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
基于特定日期的数据扫描和复制
该解决方案基于需要根据特定日期复制数据的客户。验证以下详细信息:
Created a file in Y: and checked the scan command to list them.
c:\XCP>dir Y:\karthik_test
Volume in drive Y is from
Volume Serial Number is 80F1-E201
Directory of Y:\karthik_test
05/26/2020 02:51 PM <DIR> .
05/26/2020 02:50 PM <DIR> ..
05/26/2020 02:51 PM 2,295 testfile.txt
1 File(s) 2,295 bytes
2 Dir(s) 658,747,392 bytes free
c:\XCP>
c:\XCP>xcp scan -match "strftime(ctime,'%Y-%m-%d')>'2020-05-01'" -fmt "'{},{}'.format(iso(mtime),name)" Y:\
XCP SMB 1.6; (c) 2020 NetApp, Inc.; Licensed to Calin Salagean [NetApp Inc] until Mon Dec 31 00:00:00 2029
It appears that you are not running XCP as Administrator. To avoid access issues please run XCP as Administrator.
2020-05-26_14:51:13.132465,testfile.txt
2020-05-26_14:51:00.074216,karthik_test
xcp scan -match strftime(ctime,'%Y-%m-%d')>'2020-05-01' -fmt '{},{}'.format(iso(mtime),name) Y:\ : PASSED
30,205 scanned, 2 matched, 0 errors
Total Time : 4s
STATUS : PASSED
Copy the files based on date (2020 YearMay month first date) from Y: to Z:
c:\XCP>xcp copy -match "strftime(ctime,'%Y-%m-%d')>'2020-05-01'" Y: Z:\dest_karthik
XCP SMB 1.6; (c) 2020 NetApp, Inc.; Licensed to Calin Salagean [NetApp Inc] until Mon Dec 31 00:00:00 2029
It appears that you are not running XCP as Administrator. To avoid access issues please run XCP as Administrator.
30,205 scanned, 3 matched, 0 copied, 0 errors, 5s
xcp copy -match strftime(ctime,'%Y-%m-%d')>'2020-05-01' Y: Z:\dest_karthik : PASSED
30,205 scanned, 3 matched, 2 copied, 0 errors
Total Time : 6s
STATUS : PASSED
c:\XCP>
Check the destination Z:
c:\XCP>dir Z:\dest_karthik\karthik_test
Volume in drive Z is to
Volume Serial Number is 80F1-E202
Directory of Z:\dest_karthik\karthik_test
05/26/2020 02:51 PM <DIR> .
05/26/2020 02:50 PM <DIR> ..
05/26/2020 02:51 PM 2,295 testfile.txt
1 File(s) 2,295 bytes
2 Dir(s) 659,316,736 bytes free
c:\XCP>