Synchronized backup of project files

It may be necessary to back up the files of the computer to a mobile hard disk, it may be necessary to keep the directories in the two computers synchronized, and it may be only concerned with certain file types in the project folder, etc., you can refer to the small tool DirSync.jar , which can only Copy timestamps, protect files with read-only attributes; for directory synchronization between two computers, you can use remote desktop, termsrv.dll supports remote accounts and local accounts to log on to one computer at the same time.

 

Also, don't modify the files automatically generated by the tool, but configure or modify the generated tool; don't modify or backup code maintained by others, but keep it in sync with the code base. Otherwise, many things will become futile.

 

To run a jar quickly, you can store all the bat files in a certain directory, and then add this directory to the path. The content of the bat is start /b javaw -jar jar-path, where start /b refers to the background independent execution, this will not Suspend the current console, javaw has no console output compared to java, otherwise it will still affect the previous console. In addition, the standby command line is rundll32 powrprof.dll, SetSuspendState, the lock is rundll32 user32.dll, LockWorkStation, the empty temporary file directory is del /f /s /q temp-dir, and the system service stop is sc start|stop service-name , for tomcat you need to first c: cd bin-dir, and then call the batch call startup.bat.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326348528&siteId=291194637