Man Linux: Main Page and Category List


       __inc_link - modify a symlink to point to the next file in sequence

       This program is part of afbackup


       __inc_link [ -s ] <symlink> <increment>


       the  sequence will be determined, to what the given symlink points. The
       integer number at the end of this filesystem entry will be increased by
       the given increment (may be negative).

       The  symlink  will  be  removed  and  a new one created pointing to the
       resulting filesystem entry. If there is no filesystem  entry  with  the
       resulting name exists, an error message is printed.  If the new symlink
       cannot be created or the old one cannot be removed  an  error  messages
       are  printed.  If everything works fine and the -s flag (silent) is not
       supplied, the name of the filesystem entry  to  that  the  new  symlink
       points,  is  printed.  If any error occurs the original symlink remains


       if ls -l  reports:

              lrwxrwxrwx   1   af   user   13   Oct   8  14:00   the_link   ->

              and the command  __inc_link the_link 2 is entered, the result of
              a following  ls -l  will be:

              lrwxrwxrwx   1   af   user   13   Oct   8  14:00   the_link   ->

              and some more (file.number.6 must exist)


       afclient(8),    xafclientconfig(8),   full_backup(8),   incr_backup(8),
       afverify(8), afrestore(8),  xafrestore(8),  afserver(8),  afmserver(8),
       copy_tape(8), afclient.conf(8), update_indexes(8)


       This  manual  page was written by Rene Mayorga <>
       for the Debian system (but may  be  used  by  others).   Permission  is
       granted to copy, distribute and/or modify this document under the terms
       of the  GNU  General  Public  License,  Version  2  any  later  version
       published by the Free Software Foundation.

       On  Debian systems, the complete text of the GNU General Public License
       can be found in /usr/share/common-licenses/GPL.