Questo contenuto non è disponibile nella lingua selezionata.
Chapter 16. Incremental Backup Assistance using Glusterfind
16.1. Glusterfind Configuration Options Copia collegamentoCollegamento copiato negli appunti!
- Glusterfind Create
- Glusterfind Pre
- Glusterfind Post
- Glusterfind Query
- Glusterfind List
- Glusterfind Delete
Note
To create a session for a particular instance in the volume, execute the following command:
# glusterfind create [-h] [--debug] [--force] <SessionName> <volname> [--reset-session-time]
create command is executed.
# glusterfind create sess_vol1 vol1
Session sess_vol1 created with volume vol1
To retrieve the list of modified files and directories and store it in the outfile, execute the following command:
# glusterfind pre [--debug] [--disable-partial] [--output-prefix OUTPUT_PREFIX] [--no-encode] [--regenerate-outfile] [--field-separator FIELD_SEPARATOR] [-h] <session> <volname> <outfile>
pre command is executed.
# glusterfind pre sess_vol1 vol1 /tmp/outfile.txt
Generated output file /tmp/outfile.txt
Note
NEW file1
NEW dir1%2Ffile2
MODIFY dir3%2Fdir4%2Ftest3
RENAME test1 dir1%2F%2Ftest1new
DELETE test2
--no-encode option
NEW file1
NEW dir1/file2
MODIFY dir3/dir4/test3
RENAME test1 dir1/test1new
DELETE test2
The following command is run to update the session time:
# glusterfind post [-h] [--debug] <SessionName> <volname>
post command is executed.
# glusterfind post sess_vol1 vol1
Session sess_vol1 with volume vol1 updated
To list all the active sessions and the corresponding volumes present in the cluster, execute the following command:
# glusterfind list [-h] [--session SESSION] [--volume VOLUME] [--debug]
# glusterfind list
SESSION VOLUME SESSION TIME
--------------------------------------------------
sess_vol1 vol1 2015-06-22 22:22:53
The glusterfind query subcommand provides a list of changed files based on a specified time stamp. These commands do not check any change log information. Use the glusterfind query subcommand when your backup software maintains its own checkpoints and time stamps outside glusterfind.
# glusterfind query volname --since-time timestamp1 --end-time timestamp2 output_file.txt
echo $(date +'%s') on the command line.
# glusterfind query volname --full output_file.txt
# glusterfind query volname --full --tag-for-full-find NEW output_file.txt
--field-separator option. The following command sets the field separator to ==.
# gluster query volname --full output_file.txt --field-separator "=="
To clear out all the session information associated with that particular session, execute the following command:
# glusterfind delete [-h] [--debug] <SessionName> <volname>
delete command is executed.
# glusterfind delete sess_vol1 vol1
Session sess_vol1 with volume vol1 deleted
16.1.1. Adding or Replacing a Brick from an Existing Glusterfind Session Copia collegamentoCollegamento copiato negli appunti!
glusterfind create command with force for the existing session to work. For example:
# glusterfind create existing-session volname --force