Poster of Linux kernelThe best gift for a Linux geek
__INC_LINK

__INC_LINK

Section: (8) Updated: 2007 Jun 7
Local index Up
 

NAME

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


This program is part of afbackup
 

SYNOPSIS

__inc_link [ -s ] <symlink> <increment>  

DESCRIPTION

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 unchanged.  

EXAMPLES

if ls -l reports:
lrwxrwxrwx 1 af user 13 Oct 8 14:00 the_link -> file.number.4
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 -> file.number.6
and some more (file.number.6 must exist)
 

SEE ALSO

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)  

AUTHOR

This manual page was written by Rene Mayorga <rmayorga@debian.org.sv> 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.


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 22:01:47 GMT, April 16, 2011