On Wed, Aug 21, 2013 at 11:06 AM, Valentin Cozma <[email protected]>wrote:
> salut, > > am o intrebare care ma depaseste ref la rsync . > > > am un script ca cel de mai jos, care face backup + bk incremental . > > Problema e ca nu tine cont de fisierele trecute in fisierul > backup_excludes, si deci face rsync si pe vbox care are zeci de G . > > Mersi ! > > > > backup_excludes contine : > > /home/valy/.VirtualBox/** > > [...] > # directory to backup > BDIR=/home/$USER/ > [...] > # now the actual transfer > rsync $OPTS $BDIR $BSERVER::backup/current > > Citat din manual: * if the pattern starts with a / then it is anchored to a particular spot in the hierarchy of files, otherwise it is matched against the end of the pathname. This is similar to a leading ^ in regular expressions. Thus "/foo" would match a name of "foo" at either the "root of the transfer" (for a global rule) or in the merge-file’s directory (for a per-directory rule). [..] See the section on ANCHORING INCLUDE/EXCLUDE PATTERNS for a full discussion of how to specify a pattern that matches at the root of the transfer. TL;DRTFM: pune /.VirtualBox/** fara calea in care se ancoreaza. -- P. _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
