rdup-snapshot(8) - Linux man page

Name

rdup-snapshot - create a hardlink backup

Synopsis

rdup-snapshot [ +DAYS ] [ OPTIONS ] DIR|FILE [ DIR|FILE ]

Description

rdup-snapshot is a frontend for 'rdup-snap' and 'rdup'. It will backup all directories and files given on the command line. It will create a hard linked backup directory, where the backup is created.

With the optional +DAYS argument you can specify how far backup rdup-snapshot looks back for previous backups. This should be a number in the range 1..99. It defaults to 8 days.

Making local backups is as simple as: rdup-snapshot -b /vol/backup/$HOST ~

Also note that rdup-snapshot calls rdup-snap-link. This small utility will actually hardlink copy the previous backup. The return value of rdup-snap-link will determine if a full or incremental dump will be performed.

~ is the directory to be backed up. Multiple directories or files are allowed on the command line.

There is no default backup location. You must specify a -b argument.

For the backup a YYYYMM directory is created. In this directory specific day-dumps are placed. So the first dump in October 2006, will created in 200610/01 and the second in 200610/02, etc.

You can use incremental dumps for ever, there is no need to do a full dump every once in a while.

Options

-b backupdir
The backup directory. This is where the backup is stored

Note that rdup-snapshot will add the string YYYYMM/DD to the backup directory.

-n path
The path speficies an optional prefix path for the timestamp and filelist files. These are stored, by default, in '/etc/rdup'. Now they will be put in path
-c user@remotehost
Restore a backup on a remote host. This will create a pipeline of the form:

rdup -c DIR|FILE | ssh user@remotehost

rdup-shapshot -c -b backupdir

There is no provisioning for ssh so unless you have configured ssh to work without a passphrase you will be asked to supply one. Also note that the PATH on the remote host should be set in such a way that all the rdup-util scripts can be found.

-l directory
Use directory for the lock file.
-E file
See -E in rdup(8).
-k keyfile
Encrypt the files while backing up with keyfile. This option inserts rdup-crypt keyfile in the pipeline.
-a
Enable extended attributes. Write the uid/gid to the extended user attributes r_uid and r_gid.
-f
Force a full dump.
-x
See -x in rdup(8).
-z
Compress the files while backing up. This option inserts rdup-gzip in the pipeline.
-e
Store the the timestamp and filelist files together with the backup. This allows for backups to USB-drives and such. Normally they are stored in '/etc/rdup'.

This option cannot be used when doing a remote backup.

-v
Echo the files processed to standard error.
-h
Show a short help message.
-V
Show the version.

See Also

rdup(8), rdup-mirror(8), rdup-snap-link(8) and rdup-snapshot(8). See rdup-backups(8) for examples and an introduction into making backups with rdup.

Referenced By

rdup-dump(8), rdup-restore(8), rdup-simple(8), rdup-snap(8)