selecting some kind of files using the resync command

Patrick O'Callaghan pocallaghan at gmail.com
Wed Oct 22 10:56:23 UTC 2014


On Wed, 2014-10-22 at 12:48 +0300, Angelo Moreschini wrote:
> I would like ALSO to know how to start AUTOMATICALLY,  at the boot,
> this
> command (after that it is inside a shell script)
> 
> On Wed, Oct 22, 2014 at 12:41 PM, Angelo Moreschini <
> mrangelo.fedora at gmail.com> wrote:
> 
> > Hi,
> >
> > I am able to backup files with this command:
> >  rsync -av --delete /home/programmers/Labels /media/saved_labels
> >
> > but *I am not able to select some kind of files doing the backup*
> >
> > I tried in many different way:
> >
> >  rsync -av --delete /home/programmers/Labels/*.java /media/saved_lab
> >  rsync -avr
> --delete /home/programmers/Labels/*.java /media/saved_lab
> >
> > The message that I get is :

[Don't top-post, it just confuses things.]

Instead of re-inventing the wheel, you might want to look at a backup
system that already solves these problems, for example rsnapshot (which
is based on rsync).

poc



More information about the users mailing list