How to get first level folder names with rsync commands?

Tony Abernethy tony at servacorp.com
Wed Jul 1 05:23:51 GMT 2009


Something like 
ls -d NetBackup/* | wc
should be informative.

(assuming something unixy, of course  -- cygwin stuff might work)

> -----Original Message-----
> From: rsync-bounces+tony=servacorp.com at lists.samba.org 
> [mailto:rsync-bounces+tony=servacorp.com at lists.samba.org] On 
> Behalf Of Daniel.Li
> Sent: Wednesday, July 01, 2009 12:17 AM
> To: Rsync
> Subject: How to get first level folder names with rsync commands?
> 
> Dear List,
> 
> I set up a NetBackup destination on my server.
> 
> And I backup test1 to NetBackup/test1, test2 to NetBackup/test2.
> 
> Now I wanna know how many folders that have been backuped. It 
> should be
> 2 folders, with the name of test1 and test2.
> 
> But I don't know if there is any way to do so?
> 
> 
> Any advice and help is well appreciated. Thanks.
> 
> 
> 
> -- 
> Daniel Li
> 
> -- 
> Please use reply-all for most replies to avoid omitting the 
> mailing list.
> To unsubscribe or change options: 
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: 
> http://www.catb.org/~esr/faqs/smart-questions.html
> 



More information about the rsync mailing list