"Tar"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
잔글
 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
5번째 줄: 5번째 줄:
 
# <c>-b</c> : size. 3900m은 FAT32 partition에 맞춘 것이다.
 
# <c>-b</c> : size. 3900m은 FAT32 partition에 맞춘 것이다.
 
# 그 다음 차례로, stdin, prefix.
 
# 그 다음 차례로, stdin, prefix.
[https://help.ubuntu.com/community/BackupYourSystem/TAR#Archive_Splitting] : tar를 이용한 백업문서로 최고인듯. 이 [https://help.ubuntu.com/community/BackupYourSystem 상위문서]도 아주 훌륭하다.
+
최고의 [https://help.ubuntu.com/community/BackupYourSystem/TAR#Archive_Splitting tar를 이용한 백업]문서. 이 [https://help.ubuntu.com/community/BackupYourSystem 상위문서]도 아주 훌륭하다.
  
 
==reconstitute the archive==
 
==reconstitute the archive==
 
  cat *tar.gz* | tar -xvpzf - -C /  
 
  cat *tar.gz* | tar -xvpzf - -C /  
 
[https://help.ubuntu.com/community/BackupYourSystem/TAR#Archive_Splitting]
 
[https://help.ubuntu.com/community/BackupYourSystem/TAR#Archive_Splitting]
 +
 +
==copy whole things server to server==
 +
tar -c * | nc 192.1.1.1 9999
 +
# at another server,
 +
nc -l 9999 | tar -xf -

2018년 3월 6일 (화) 15:39 기준 최신판

split during creation

tar -cvpz <put options here> / | split -d -b 3900m - /name/of/backup.tar.gz.
  1. f option이 없음
  2. -d : suffix는 numerical
  3. -b : size. 3900m은 FAT32 partition에 맞춘 것이다.
  4. 그 다음 차례로, stdin, prefix.

최고의 tar를 이용한 백업문서. 이 상위문서도 아주 훌륭하다.

reconstitute the archive

cat *tar.gz* | tar -xvpzf - -C / 

[1]

copy whole things server to server

tar -c * | nc 192.1.1.1 9999
# at another server,
nc -l 9999 | tar -xf -