Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancel = errors.New("cancelled add")
View Source
var RootCmd = &cobra.Command{
Use: "ibackup",
Short: "ibackup backs up local files to iRODS",
Long: `ibackup backs up local files to iRODS.
For automated backups via an ibackup server, use the add and status
sub-commands, eg.:
echo /abs/path/to/file1.txt > files.txt
echo /abs/path/to/file2.txt >> files.txt
echo /abs/path/to/dir1 > dirs.txt
echo /abs/path/to/dir2 >> dirs.txt
ibackup add -n myfirstbackup -t 'humgen' -f files.txt -d dirs.txt
ibackup status
(You'll need the IBACKUP_SERVER_URL and IBACKUP_SERVER_CERT environment
variables set up for you by whoever started the server.)
For manual backups, use the addremote and put sub-commands, eg. to backup
everything in a directory:
find /abs/path/to/dir -type f -print0 | ibackup addremote --humgen -0 -b | ibackup put -b
`,
}
RootCmd represents the base command when called without any subcommands.
View Source
var Version string
Version gets set during build: go build -ldflags "-X github.com/wtsi-hgi/ibackup/cmd.Version=`git describe --tags --always --long --dirty`" .
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.