BackupPC-users

Re: [BackupPC-users] How to exclude all hidden files except some of them ?

2010-08-24 11:07:11
Subject: Re: [BackupPC-users] How to exclude all hidden files except some of them ?
From: Richard Shaw <hobbes1069 AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 24 Aug 2010 10:04:08 -0500
On Mon, Aug 23, 2010 at 12:31 PM, Xuo <xuoy AT free DOT fr> wrote:
>  Hi,
>
> My RsyncShareName is /home.
> I would like to be able to backup everything under /home/* but NOT to
> backup all hidden files (.xxx files) of /home/* EXCEPT (for ex) .tcshrc,
> .ssh, .filezilla and .thunderbird files or dirs.
>
> I have excluded some .xxx files (with BackupFilesExclude) but it is
> painful and some new .xxx files can be added anytime. The best should be
> to exclude all except some of them.
>
> How can I do this ?

I wish I could give you some specific advice but I haven't tried this
so I'll have to speak in generalities.

I'm pretty sure excludes are applied prior to includes so I would
approach it like this:
- Use a single exclude for all ".xxx" files. The excludes work
differently depending on the backup method so I would play with this
until I get it working. I don't even understand them completely.
- Then include the specific directories you want to backup.

Just be careful how you craft your excludes. If you use a glob (i.e.
*) on the front of your exclude then I think it will apply to every
directory, not just /home. Also, I don't think it will differentiate
between hidden directories or hidden files.

Richard

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>