[Gllug] rsync-ing sub-directories only

Alain Williams addw at phcomp.co.uk
Sun Nov 22 22:53:15 UTC 2009


On Mon, Nov 23, 2009 at 10:57:15AM +1300, GLLUG at getaroundtoit.co.uk wrote:
> Dear commandLN mavens,
> 
> Is there a way to have rsync one-way mirror my laptop's Desktop and my 
> 'main machine', in such a way as to only target Desktop sub-directories 
> whilst ignoring all simple files sitting on the Desktop itself?
> 
> Any and all advice will be appreciated,
> =dn
> 
> 
> The long-winded version:
> I'm traveling around and not permanently connected to the Internet, 
> often having to take my old, slow, portable to use public library and 
> cyber-cafe connections, but preferring to use a more powerful desktop 
> (and full-sized keyboard) at home=work. Keeping the two in-sync is a bit 
> of a hassle:
> 
> It is easy enough to rsync something like "Desktop/ProjectNotes" between 
> my two machines. However I may have several projects or topics on the 
> go, and new projects come along, just as old projects eventually 'go 
> away'. To avoid embarrassment (either of storage space or personal 
> organisation) I try to keep as little as possible on the laptop.
> ....

Why not put all your projects directories into a subdirectory of 'Desktop'
(eg 'Desktop/Work') and rsync all of that.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list