fpsync.md 1.5 KB

fpsync

์—ฌ๋Ÿฌ ๋™๊ธฐํ™” ํ”„๋กœ์„ธ์Šค๋ฅผ ๋กœ์ปฌ ๋˜๋Š” ์—ฌ๋Ÿฌ ์›๊ฒฉ ์›Œ์ปค์—์„œ SSH๋ฅผ ํ†ตํ•ด ์‹คํ–‰. ๋” ๋งŽ์€ ์ •๋ณด: https://www.fpart.org/fpsync/.

  • ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ๋‹ค๋ฅธ ์œ„์น˜๋กœ ์žฌ๊ท€์ ์œผ๋กœ ๋™๊ธฐํ™”:

fpsync -v {{/๊ฒฝ๋กœ/๋Œ€์ƒ/์†Œ์Šค/}} {{/๊ฒฝ๋กœ/๋Œ€์ƒ/๋ชฉ์ ์ง€/}}

  • ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์žฌ๊ท€์ ์œผ๋กœ ์ตœ์ข… ํŒจ์Šค๋กœ ๋™๊ธฐํ™” (๊ฐ ๋™๊ธฐํ™” ์ž‘์—…์— rsync์˜ --delete ์˜ต์…˜ ํ™œ์„ฑํ™”):

fpsync -v -E {{/๊ฒฝ๋กœ/๋Œ€์ƒ/์†Œ์Šค/}} {{/๊ฒฝ๋กœ/๋Œ€์ƒ/๋ชฉ์ ์ง€/}}

  • ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์žฌ๊ท€์ ์œผ๋กœ 8๊ฐœ์˜ ๋™์‹œ ๋™๊ธฐํ™” ์ž‘์—…์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ชฉ์ ์ง€๋กœ ๋™๊ธฐํ™”:

fpsync -v -n 8 -E {{/๊ฒฝ๋กœ/๋Œ€์ƒ/์†Œ์Šค/}} {{/๊ฒฝ๋กœ/๋Œ€์ƒ/๋ชฉ์ ์ง€/}}

  • ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์žฌ๊ท€์ ์œผ๋กœ 8๊ฐœ์˜ ๋™์‹œ ๋™๊ธฐํ™” ์ž‘์—…์„ ๋‘ ๊ฐœ์˜ ์›๊ฒฉ ์›Œ์ปค(machin1 ๋ฐ machine2)์— ๋ถ„์‚ฐํ•˜์—ฌ ๋ชฉ์ ์ง€๋กœ ๋™๊ธฐํ™”:

fpsync -v -n 8 -E -w login@machine1 -w login@machine2 -d {{/๊ฒฝ๋กœ/๋Œ€์ƒ/๊ณต์œ /๋””๋ ‰ํ† ๋ฆฌ}} {{/๊ฒฝ๋กœ/๋Œ€์ƒ/์†Œ์Šค/}} {{/๊ฒฝ๋กœ/๋Œ€์ƒ/๋ชฉ์ ์ง€/}}

  • ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์žฌ๊ท€์ ์œผ๋กœ 4๊ฐœ์˜ ๋กœ์ปฌ ์›Œ์ปค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ ๋™๊ธฐํ™” ์ž‘์—…๋‹น ์ตœ๋Œ€ 1000๊ฐœ์˜ ํŒŒ์ผ๊ณผ 100MB๋ฅผ ์ „์†กํ•˜๋ฉฐ ๋ชฉ์ ์ง€๋กœ ๋™๊ธฐํ™”:

fpsync -v -n 4 -f 1000 -s $((100 * 1024 * 1024)) {{/๊ฒฝ๋กœ/๋Œ€์ƒ/์†Œ์Šค/}} {{/๊ฒฝ๋กœ/๋Œ€์ƒ/๋ชฉ์ ์ง€/}}

  • ํŠน์ • .snapshot* ํŒŒ์ผ์„ ์ œ์™ธํ•œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์žฌ๊ท€์ ์œผ๋กœ ๋™๊ธฐํ™” (์ฐธ๊ณ : ์˜ต์…˜๊ณผ ๊ฐ’์€ ํŒŒ์ดํ”„ ๋ฌธ์ž๋กœ ๊ตฌ๋ถ„ํ•ด์•ผ ํ•จ):

fpsync -v -O "-x|.snapshot*" {{/๊ฒฝ๋กœ/๋Œ€์ƒ/์†Œ์Šค/}} {{/๊ฒฝ๋กœ/๋Œ€์ƒ/๋ชฉ์ ์ง€/}}