---
name: "__inc_link"
section: "8"
platform: "linux"
package: "afbackup"
version: "3.5.3-3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/__inc_link"
---

# \_\_inc\_link(8)

modify a symlink to point to the next file in sequence This program is part of afbackup

## 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)](/afclient/8.md), [xafclientconfig(8)](/xafclientconfig/8.md), [full\_backup(8)](/full_backup/8.md), [incr\_backup(8)](/incr_backup/8.md), [afverify(8)](/afverify/8.md), [afrestore(8)](/afrestore/8.md), [xafrestore(8)](/xafrestore/8.md), [afserver(8)](/afserver/8.md), [afmserver(8)](/afmserver/8.md), [copy\_tape(8)](/copy_tape/8.md), [afclient.conf(8)](/afclient.conf/8.md),** **[update\_indexes(8)](/update_indexes/8.md)**

## 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.**
