---
name: "rdup-snap"
section: "1"
platform: "linux"
package: "rdup"
version: "0.6.0-1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/rdup-snap"
---

# rdup-snap(1)

create backup in a hard link directory

## NAME

rdup-snap - create backup in a hard link directory

## SYNOPSIS

**rdup-snap** \[ *OPTION* \]

## DESCRIPTION

**rdup-snap** copies the files it gets from standard input to the directory specified with the -b option. This script *implements* the backup policy.  It works on a directory that is hard linked or on an empty directory. When the directory is empty a full dump is performed.

If a file (i.e. hard link) already exists in the backup directory it will be removed. The end result will be that you will be left with a complete mirror of your directory structure at the time of the backup. Due to the use of hard links the amount of disk space used for the backup is minimized.

## OPTIONS

- **-a**

  Write the uid and gid information to the file's extended user attributes: ´r\_uid' and 'r\_gid'. This option only works if **attr** is available on the system. This currently works for Linux and Solaris 10.

- **-b backupdir**

  Store the backup in *backupdir*. This argument is mandatory.

- **-R**

  Restore mode. Copy the files from standard input to the directory given with the -b option. In restore mode all entries which should be removed are ignored and no overview message at the end of the restore is given.

- **-c**

  Used in conjunction with **rdup**'s -c. This will allow **rdup-snap** to be used for remote backups.

- **-p NUM**

  Strip NUM slashes of the path names, thereby stripping a common prefix of all names. Only valid when -R is also given.

- **-v**

  Echo the files processed to standard error.

- **-h**

  Short help message.

- **-V**

  Show the version.

## SEE ALSO

[rdup(1)](/rdup/1.md), [cp(1)](/cp/1.md), [date(1)](/date/1.md) and rdup-snapshot(1).
