Difference between revisions of "Recitaldump"
Barrymavin (Talk | contribs) |
Barrymavin (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | The recitaldump command is used to perform machine independent backups of either a database or a directory tree. You use | + | The recitaldump command is used to perform machine independent backups of either a database or a directory tree. You use the recitalrestore command to restore the backup onto another machine. It takes the following arguments. |
− | '''Note: | + | '''Note: recitaldump and recitalrestore must be run as root. For systems with a hidden root account, please precede the commands with ’sudo’.''' |
==== help ==== | ==== help ==== | ||
Line 14: | Line 14: | ||
<code lang="bash"> | <code lang="bash"> | ||
− | + | recitaldump -D southwind | |
</code> | </code> | ||
Line 28: | Line 28: | ||
<code lang="bash"> | <code lang="bash"> | ||
− | + | recitaldump -d /data/application -r | |
</code> | </code> | ||
Line 35: | Line 35: | ||
<code lang="bash"> | <code lang="bash"> | ||
− | + | recitaldump -D southwind -o accountants | |
</code> | </code> | ||
Line 43: | Line 43: | ||
<code lang="bash"> | <code lang="bash"> | ||
− | + | recitaldump -D southwind -t | |
</code> | </code> |
Revision as of 01:44, 30 November 2009
The recitaldump command is used to perform machine independent backups of either a database or a directory tree. You use the recitalrestore command to restore the backup onto another machine. It takes the following arguments.
Note: recitaldump and recitalrestore must be run as root. For systems with a hidden root account, please precede the commands with ’sudo’.
Contents
help
Using the help or -h argument will display a list of arguments for all the services.
recitaldump help
-D database
This argument is used to specify the name of a database to create the dump from.
recitaldump -D southwind
-d directory
This argument is used to specify the name of a directory create the dump from. If there is a file called _reindex.prg located in the parent directory this file will used to recreate single index files on the restored files. You must add the Recital script commands used to rebuild the index files in this file. Multiple tag index files are handled automatically
recitaldump -d /data/application
-r
This argument is used in conjunction with the -d option to recursively process subdirectories.
recitaldump -d /data/application -r
-o outfile
Specify the output backup file name. When you need to restore this file use the dbrestore command. For example to create a backup file of the southwind database called accountants.tar.gz;
recitaldump -D southwind -o accountants
-t
This argument is used to add a time stamp to output file name. For example if today was the 2nd of November 2009 at 03:27pm the following command would create a file called southwind-20091102-1527.tar.gz from backing up the southwind database.
recitaldump -D southwind -t