but doesn't '~' merely extrapolate to '/home'?<div>further, what does putting the slash '/' at the end of the destination directory do (rather than just saying '/dest/i/nation' <w/o the trailing slash>)?<br clear="all">
<div>:-)~MIKE~(-:</div>
<br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 11:43 AM, Michael Havens <span dir="ltr"><<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
thanks, buddy!<br clear="all"><div>:-)~MIKE~(-:</div><div class="HOEnZb"><div class="h5">
<br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 8:14 AM, <a href="mailto:kitepilot@kitepilot.com" target="_blank">kitepilot@kitepilot.com</a> <span dir="ltr"><<a href="mailto:kitepilot@kitepilot.com" target="_blank">kitepilot@kitepilot.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mike, read the man pages, your syntax is wrong and it is clearly stated when you:<br>
$ man rsync <br>
With that said, the syntax that you are concerned with in this instance is:<br>
rsync [OPTION...] SRC... [USER@]HOST:DEST <br>
A couple of details that may bite you:<br>
Don't rely on '~' to address a directory on the destination box.<br>
The '~' will be interpreted by the shell before the command is handed to 'rsync' and, if the tree in both boxes don't match, you'll get a mysterious error that won't make sense until you realize that 'bash globbing' is handing your 'rsync' the wrong path' <br>
That is also valid for:<br>
--exclude=.*mozilla*<br>
if '.*mozilla*' resolves to more than one path you will get interesting (and undecipherable) error messages.<br>
I would do it as:<br>
--exclude='.*mozilla*' <br>
So, the 'proper' construction would something like:<br>
$ rsync -vva \<br>
--exclude='/home/bmike1/<u></u>Pictures/*' \<br>
--exclude='.*mozilla*' \<br>
--exclude='.*chromium*' \<br>
xbmc@192.168.0.3:/home/xbmc/<u></u>backupdirectoryname <br>
And remember:<br>
if you have any question,<br>
you will get any answer... :)<br>
ET <br>
<br>
<br>
<br>
Michael Havens writes: <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
I want to have a backup of the hard drives of the computers in my house on<br>
the other computer. What I was doing before is making each ~ identical.<br>
Would the following command give me the desired effect? <br>
rsync -vva --exclude=/home/bmike1/<u></u>Pictures/* --exclude=.*mozilla*<br></div>
--exclude=.*chromium* ~/* *xbmc@192.168.0.3:/home/xbmc/*<u></u>backupdirectoryname*;<br>
rsync -vva --exclude=/home/bmike1/<u></u>Pictures/* --exclude=.*mozilla*<br>
--exclude=.*chromium* xbmc@192.168.0.3:/home/xbmc/ *~/backupdirectoryname*<br>
*<br>
*<br>
is this correct? <br>
:-)~MIKE~(-:<br>
</blockquote>
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/<u></u>mailman/listinfo/plug-discuss</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br></div>