Mailing List Archive
tlug.jp Mailing List tlug archive tlug 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
- Date: Fri, 11 Nov 2011 23:53:02 +0900
- From: Charles Muller <cmuller-lst@example.com>
- Subject: Re: [tlug] Run rsync based on time difference between local file and server file
- References: <4EBCE24E.3070906@example.com> <CAJA1Y2Z1syjYXrdWiRdei8UMh-MjU_eu1oSBXXVfBUYeN6nkig@example.com> <4EBCF7A3.60304@example.com> <CA+hLB26MO+Pp2nogaWHAWLPGfGbSmJpG3410SPU0rWF_Sf7OQw@example.com>
- User-agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
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
- Follow-Ups:
- References:
- [tlug] Run rsync based on time difference between local file and server file
- From: Charles Muller
- Re: [tlug] Run rsync based on time difference between local file and server file
- From: Bruno Raoult
- Re: [tlug] Run rsync based on time difference between local file and server file
- From: Raymond Wan
- Re: [tlug] Run rsync based on time difference between local file and server file
- From: S Gibson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Run rsync based on time difference between local file and server file
- Next by Date: Re: [tlug] Run rsync based on time difference between local file and server file
- Previous by thread: Re: [tlug] Run rsync based on time difference between local file and server file
- Next by thread: Re: [tlug] Run rsync based on time difference between local file and server file
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links