Windowsç°å¢ã«ããã¦ãæ¯æ¥ãç¹å®ãã©ã«ãã7zå½¢å¼ã§ããã¯ã¢ãããããã£ãããæ¯åãã«ããã¯ã¢ããã®ããã«ã¢ã¼ã«ã¤ããä½æããã®ã§ã¯ãªããå·®åã ãå¦çããããã£ãã
ãªãã·ã§ã³ã調ã¹ãã¨ããã以ä¸ã®2ã¤ã§è§£æ±ºããã
https://7-zip.opensource.jp/chm/cmdline/switches/update.htm
https://superuser.com/questions/528232/synchronizing-files-using-7-zip-and-the-cli
以ä¸ã®é¨åã
My example of "u -uq0" is identical to "u -up1q0r2x1y2z1w2", because only the "q0" is different from what "u" usually does.
å
¬å¼ãã«ãã«ããã¨ãu 㨠-uq0 ãä½µç¨ããã¨ããSynchronizeãã®ãªãã·ã§ã³ãæå®ããäºã«ãªãã¨ã®èª¬æã
ï¼ä¸è¦§è¡¨ã® u (Update) / Synchronize ã®è¡ãåç
§ï¼
èãæ¹ã¨ãã¦ã¯ã
- 7-zip 㧠uï¼updateï¼ã³ãã³ãã使ç¨ãã-uq0 ã®ãªãã·ã§ã³ãä»å
- ã½ãªããå§ç¸®ããã¨å¦çãé ããªãããã-ms=off ã¨ãã¦ãã
ããã¼ã¹ã«ãä»ã«å¿ è¦ãªãªãã·ã§ã³ãä»å ãã¦ã次ã®ãããªã³ãã³ãã§åæãå®ç¾ã§ããã
7z.exe u $CompressionLevel $LogLevel $ExcludeLists -ms=off dst_file.7z -uq0 $SrcFolder
ããã§ãåå¤æ°ã¯ä»¥ä¸ã®éãã
$SrcFolderï¼ã½ã¼ã¹ãã©ã«ã
$CompressionLevelï¼-mx1 (fastest) ... -mx9 (ultra) ã®å§ç¸®ã¬ãã«ãæå®ã
$ExcludeListsï¼é¤å¤ãã£ã¬ã¯ããªãæå®ï¼ä¾ï¼-xr!"Thumbs.db" -xr!"*.tmp"ï¼
$LogLevelï¼-bb0ï½-bb3,ï¼å°ï½å¤ï¼ãæå®ãæªæå®ã®å ´åã¯ã-bb0ï¼ãªããã«ãªãã
https://7-zip.opensource.jp/chm/cmdline/switches/method.htm
https://7-zip.opensource.jp/chm/cmdline/switches/exclude.htm
https://7-zip.opensource.jp/chm/cmdline/switches/bb.htm
åä½ã試ãã¨ã次ã®ããã«ãªãã
1åç®ï¼ãã¹ã¦ã¢ã¼ã«ã¤ãã«è¿½å ãããï¼é¤å¤æå®ãããã®ã¯å¯¾è±¡å¤ï¼
2åç®ä»¥é
ã- ã¢ã¼ã«ã¤ãå
ã«ç¡ããã¡ã¤ã«ã¯ãæ°ãã追å ããã
ã- ã½ã¼ã¹å´ã®ãã¡ã¤ã«ã®ã¿ã¤ã ã¹ã¿ã³ããæ°ããå ´åã¯ãã¢ã¼ã«ã¤ãå
ã¸ä¸æ¸ãæ´æ°ããã
ã- ã¢ã¼ã«ã¤ãå
ã«ãããã½ã¼ã¹å´ã«ç¡ããã¡ã¤ã«ã¯ãã¢ã¼ã«ã¤ãå
ããåé¤ããã
ã- ã¢ã¼ã«ã¤ãå
ã¨ã½ã¼ã¹å´ã®ä¸¡æ¹ã«ãããã½ã¼ã¹å´ã®æ¹ãã¿ã¤ã ã¹ã¿ã³ããå¤ãå ´åã¯æ´æ°ãããªãï¼ä¸æ¸ããããã¹ãããï¼