⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 llbackup.8

📁 lustre 1.6.5 source code
💻 8
字号:
.\" -*- nroff -*-.\" Copyright 2008 by Sun Microsystems.  All Rights Reserved..\" This file may be copied under the terms of the GNU Public License, v2..\".TH llbackup 8 "2008 Mar 15" Lustre "System management commands".SH NAMEllbackup \- backup a list of files, optionally from multiple nodes at once.SH SYNOPSIS.B llbackup -c.RB [ -hjvxz "] [" -C.IR directory ].RB [ -e.IR rsh ].RB [ -i.IR inputlist ].RB [ -l.IR logdir ].RB [ -n.IR nodes ].RB [ -s.IR splitmb ].RB [ -S.IR splitcount ].RB [ -T.IR tar ].BI -f outputfilebase.br.B llbackup.RB { -x | -t }.RB [ -chjvz "] [" -C.IR directory ].RB [ -e.IR rsh ].RB [ -l.IR logdir ].RB [ -n.IR nodes ].RB [ -T.IR tar ].BI -f tarfilelist.SH DESCRIPTION.B llbackuptakes a list of files to backup or restore, either from standard input, orfrom a list of files supplied as a parameter and produces one or more archivefiles containing the files..B llbackupuses the.BR tar (1)or.BR htar (1)programs to produce archive files, and has many of the same options (thoughnot identical in some cases).  The reason for using llbackup instead of thoseprograms directly is that llbackup can run in parallel on multiplenodes to do high-speed backups on clustered or distributed filesystems andwill split the work among multiple client nodes to increase performance..brThe archive files produced by.B llbackupare identical to normal tar files (having been created by the local tarcommand) and can be extracted or listed by.B tardirectly..brThe clients will pause and print status messages if they think there is notenough free space in the output directory to avoid running out of space.Backup tarfiles should be moved to offline storage or otherwise purged toallow the backups to continue.  If the client is doing a restore it willsimilarly pause and print status messages if the tarfile it was asked torestore is not available on that node..SH OPERATIONSThe following options control what operation.B llbackupwill perform:.TP.B -ccreate archive.  This is the default operation if no other is given..TP.B -xextract tarfiles from the.I tarfilelistgiven to.B -finstead of backing them up..TP.B -tlist table of contents of the.I tarfilelistgiven by.BR -f ..SH OPTIONS.TP.BI -C directorychange the backup command to run in.I directoryinstead of the current working directory so filenames given in the inputfile are backed up or restored relative to.IR directory .Note that this affects all pathname components used during backup and restoreso the.I inputlistand.I outputbaseshould be specified by absolute pathname if they are not also in.IR directory ..TP.BI -e rshspecify the passwordless remote shell command (default.BR ssh (1))..TP.BI -f outputbasespecify base output filename for backup tar archives, to which a suffix willbe appended to ensure that multiple clients doing backup into the samedirectory do not have conflicting filenames.  The.I outputbasefile can be a tape or disk device, but must be the same device on each clientrunning the backup, in which case only a single process can run on each client.Specifying.B -means write to standard output..TP.BI -f tarfilelistspecify a file containing a list of tarfiles, one per line, to restore orlist the table of contents of.  Specifying.B -means read the list of tarfiles from standard input.  The.I tarfilelistcan also be a tape or disk device, but since the individual tarfiles aresent to individual clients, the same files must be accessible on all clients..TP.B -hprint this help message and exit.  Use.B -x.B -hor.B -t.B -hto get the help options for restore or list operations..TP.BI -i inputlistlist of files to backup when creating an archive.  If no.B -ioption is specified or if.I inputlistis - then the list of files to back up is read from standard input.  The inputfile list is a list of pathnames, one file per line, as generated by.BR find (8),.BR "lfs find" (8),or.BR e2scan (8)for example.  For restore this option is currently unused..TP.B -juse.BR bzip2 (1)compression on input or output tar file(s).  This option is notcurrently supported by the underlying.BR htar (8)implementation..TP.BI -l logdirdirectory for output logs..TP.BI -n nodescomma-separated list of client nodes to run backups.  It is possible tospecify the same client node multiple times in order to have multipleinstances of the backup or restore running in parallel on that node.This is useful to maximize the bandwidth of the backup or restore processand avoid client nodes underutilizing their bandwidth while generatingfile lists or compressing files..TP.BI -s splitmbtarget size for backup chunks in megabytes (default 8192MiB).  Increasing thissize can improve performance and compression ratios, but may causeunderutilization of clients if the files are not evenly distributed.This option has no meaning for restore or list operations..TP.BI -S splitcountnumber of files sent to each client before sending files to the next client(default 200).  Increasing the.I splitcountkeeps more related files together in individual tar files (meaning fewerarchives need to be processed when restoring files for a particularsubdirectory), but can lead to performance imbalance if files vary greatlyin size and one client has to back up many of them due to proximity offilenames in the input list, while other clients back up smaller files.Decreasing the.I splitcountmeans a more uniform distribution of files and usage among clients, butmeans nearly every archive will have to be extracted to get only a subsetof files needed.This option has no meaning for restore or list operations..TP.BI -T tarspecify the backup command (default tar).  Optionally the.BI htar (8)command can be used to back up directly to an HPSS archive, if available..TP.B -vbe verbose - list all files being processed.  By default, individual filesbeing backed up or restored are only reported in the log files because theywould all be intermixed coming from multiple clients in parallel and theoverall progress would be hard to determine..TP.B -Vprint version number and exit..TP.B -zuse gzip compression on input or output tar file(s).  This option is notcurrently supported by the underlying.BR htar (8)implementation..SH EXAMPLES.TP.B lfs find /home -mtime -7 | llbackup -c -n c1,c2 -f /bkup/bk2008-03-15Create a backup of the.B /homefilesystem finding files modified in the last 7 days, compress the outputusing.B gzipand run on client nodes.B c1nodes, putting the output tar files into the.B /bkupdirectory using filenames starting with.BR bk2008-03-15 ..TP.B find /bkup -name bk2007-11-28* | llbackup -x -n c1,c1,c2,c2 -C /tmp -f-Restore.B gzipcompressed files from the.B bk2007-11-28backup from the.B /bkupdirectory, using two restore processes on each of the client nodes.B c1and.BR c2 ,reading the list of tar files to restore from standard input and restoringinto the.B /tmpdirectory..SH BUGSIt is currently not possible to extract only a subset of files from thetarfiles.  If that is necessary, then tar should be run directly on theindividual tar files after checking in the backup logs which tarfileshave the relevant files..SH SEE ALSO.BR lustre (7),.BR tar (8),.BR htar (8),.BR ssh (1),.BR rsh (1),.BR find (1),.BR lfs "(1) " find ,.BR e2scan (8).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -