John Rouillard wrote:
> Hi all:
>
> Our current backup system (hdup) allows the user to prune directories
> from the backups. So I can backup the /home share and have a user
> create
>
>   /home/user/data/lots_of_junk_data_that_doesnt_need_backup/.nobackup.
>
> that file will prevent the backup of
>
>   /home/user/data/lots_of_junk_data_that_doesnt_need_backup
>
>
>   

Have you tried the -F option in rsync?  Seems to work for me.  I added 
-F to the rsync remote options and then dropped a .rsync-filter file in 
the directory.  The contents of .rsync-filter is just one line, 

    - *

It is a little more work than just 'touch .nobackup'.  On the other 
hand, maybe a cronjob could be made with an appropriate find that 
sprinkles these wherever the .nobackup files exists.  It could be 
followed by another find for .rsync-filter files and removes them if a 
.nobackup files doesn't exist as well (maybe that's not such a good idea 
if others are using rsync filters on the box independently of you...).  
Anyway, I'd suggest doing this in File::Find in perl.

Rich

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to