艾瑞克的 Hexo 空間

[筆記] rsync with file version control

本文發表於605天之前,文章內容可能已經過時,如有疑問,請聯繫作者。

using rsync with -b (backup) and –suffix parameters to backup file histroy with timestamp

if wanna run script in crontab , must add “\” berfore “%” in script

chinese folder/file name is OK.

 

/usr/local/bin/rsync -avPbu –suffix=.date +\%Y\%m\%d\%H\%M\%S –exclude=”@eaDir” –log-file=”/nas/DB_Backup/rsynclog/總營業處date +\%Y-\%m-\%d.log” /218/總營業處 /zp
[caption id=”attachment_1651” align=”alignnone” width=”563”]rsync with timestamp result rsync with backup and timestamp result[/caption]

 

avatar
[筆記] WinAudit Parameters

  1. 1. using rsync with -b (backup) and –suffix parameters to backup file histroy with timestamp