Skip to main content
NetApp Solutions
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

특정 날짜 기반 스캔 및 데이터 복사

기여자

이 솔루션은 특정 날짜를 기준으로 데이터를 복사해야 하는 고객을 기반으로 합니다. 다음 세부 정보를 확인합니다.

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>