Question: because of the need to real-time analysis, so the real-time demand is higher, SCP once a minute and cover the original file at a time, how to continuously read the export file content to analysis?
Supplement: 1. The other system of log is divided according to the hours, such as by 10 o 'clock, the log files will be renamed the a. a. 20200803-09, then generate a new file, how to guarantee the SCP content integrity?
2. Because the log directory is very big, and more than one type of log (I only need transaction log), so don't consider the entire directory SCP
CodePudding user response:
Suggest you see the rsync commandCodePudding user response:
Can log directory over NFS mount on its own system,So you don't need to copy, deal directly with the log file a,
At the same time, to deal with a rename,