Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Run rsync based on time difference between local file and server file



OK, I think I have an idea how to do this:



rsync  -uvp -e ssh chuck@example.com:/directory/testfile1 /home/chuck/

if [ testfile1 -nt testfile2 ]; then

{Run rsync scripts down from server}

fi

if [ testfile1 -ot testfile2 ]; then

{Run rsync scripts up to server}

fi


...except that there might be UTC issues. It's late, I'll play with it tomorrow.


Chuck

-------------------

A. Charles Muller

University of Tokyo
Graduate School of Humanities and Sociology, Faculty of Letters
Center for Evolving Humanities
7-3-1 Hongō, Bunkyō-ku
Tokyo 113-8654, Japan

Web Site: Resources for East Asian Language and Thought
http://www.acmuller.net

<acmuller[at]jj.em-net.ne.jp>

Mobile Phone: 090-9310-1787

Twitter @acmuller4




Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links