[筆記] rsync with file version control

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/rsync_log/總營業處_`date +%Y-%m-%d`.log”  /218/總營業處 /zp

pietty0327_2016-04-18_11-44-54

 

<

p data->總計有 (0) 人看過這篇文。

Leave a Reply

你的電子郵件位址並不會被公開。 必要欄位標記為 *