Mailing List Archive


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

Re: [tlug] Remote Backups and Command Line Stuff



>>>>> "Godwin" == Godwin Stewart <godwin.stewart@example.com> writes:

    Godwin> tar -cvz back_this_up | ssh user@example.com \
    Godwin> "cd backupdir; cat > backup.`date +%Y%m%d`.tar.bz2"

    Godwin> Does `date......` get evaluated on the local machine

Yes.  Command substitution occurs inside of double quotes.  Here's a
curious thing:

$ echo "'`date`'"
'Sat Jul  8 03:04:50 JST 2006'

(Only the outermost quotes count.)

-- 
School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links