Source: ssh tar 命令把遠端檔拉回來或推過去
轉貼 http://zoomq.qiniudn.com/ZQScrapBook/ZqFLOSS/data/20101215175709/
在Linux下,通常可透過scp/tar+ssh/rsync處理異機備份的動作。
本文對tar+ssh實作說明簡明,故留存之.
Source: ssh tar 命令把遠端檔拉回來或推過去
轉貼 http://zoomq.qiniudn.com/ZQScrapBook/ZqFLOSS/data/20101215175709/
在Linux下,通常可透過scp/tar+ssh/rsync處理異機備份的動作。
本文對tar+ssh實作說明簡明,故留存之.
Source: Using tar and ssh to efficiently copy files preserving permissions
Have you had situations where disk-space is sparse, so making full tars (although compressed) is impossible? Here is an ssh trick that could help you copy over files without using too much diskspace.
# 記錄本次備份第一次全部備份之時間: touch bkup_last_time
# 下次備份 /etc 目錄時, 不全部備份, 只備份異動檔, 方法如下:
find /etc -cnewer bkup_last_time > newbk.lst
tar cvf etc.newer.tar -T newbk.lst
# 記錄本次備份之時間: touch bkup_last_time
# 下次備份時再重覆上述步驟.