#1 2019-02-18 11:47:15

Dennis
Member
Registered: 2019-02-12
Posts: 12

Small Errors from jobs/002

Dear 33 hops team,

Thanks for making such a great tool. Running a job from command line gives some errors: rsync and grep

/<path>/scripts/xsi-dir/jobs/002
sh: rsync: unknown operand
grep: invalid option -- '*'
BusyBox v1.22.1 (2018-07-23 19:34:44 PDT) multi-call binary.

Usage: grep [-HhnlLoqvsriwFEz] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

Search for PATTERN in FILEs (or stdin)

	-H	Add 'filename:' prefix
	-h	Do not add 'filename:' prefix
	-n	Add 'line_no:' prefix
	-l	Show only names of files that match
	-L	Show only names of files that don't match
	-c	Show only count of matching lines
	-o	Show only the matching part of line
	-q	Quiet. Return 0 if PATTERN is found, 1 otherwise
	-v	Select non-matching lines
	-s	Suppress open and read errors
	-r	Recurse
	-i	Ignore case
	-w	Match whole words only
	-x	Match whole lines only
	-F	PATTERN is a literal (not regexp)
	-E	PATTERN is an extended regexp
	-z	Input is NUL terminated
	-m N	Match up to N times per file
	-A N	Print N lines of trailing context
	-B N	Print N lines of leading context
	-C N	Same as '-A N -B N'
	-e PTRN	Pattern to match
	-f FILE	Read pattern from file

grep: invalid option -- '*'
BusyBox v1.22.1 (2018-07-23 19:34:44 PDT) multi-call binary.

Usage: grep [-HhnlLoqvsriwFEz] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

Search for PATTERN in FILEs (or stdin)

	-H	Add 'filename:' prefix
	-h	Do not add 'filename:' prefix
	-n	Add 'line_no:' prefix
	-l	Show only names of files that match
	-L	Show only names of files that don't match
	-c	Show only count of matching lines
	-o	Show only the matching part of line
	-q	Quiet. Return 0 if PATTERN is found, 1 otherwise
	-v	Select non-matching lines
	-s	Suppress open and read errors
	-r	Recurse
	-i	Ignore case
	-w	Match whole words only
	-x	Match whole lines only
	-F	PATTERN is a literal (not regexp)
	-E	PATTERN is an extended regexp
	-z	Input is NUL terminated
	-m N	Match up to N times per file
	-A N	Print N lines of trailing context
	-B N	Print N lines of leading context
	-C N	Same as '-A N -B N'
	-e PTRN	Pattern to match
	-f FILE	Read pattern from file

Killed
[root] cat <path>/scripts/xsi-dir/jobs/002
# This is a backup job file example. It starts with the path to your
# xsibackup file and ends with the redirection to the log file. Please
# do make sure that you keep first and last lines, changing paths to
# match your working environment.

"<path>/scripts/xsi-dir/xsibackup" \
--certify-backup=yes \
--backup-point=<path>/vm \
--backup-type=custom \
--backup-vms="example!exclude_tester.vmdk;exclude_example.vmdk;exclude_1.vmdk;exclude_2.vmdk;exclude_3.vmdk;exclude_4.vmdk;exclude_5.vmdk;exclude_6.vmdk;exclude_7.vmdk;exclude_8.vmdk,tester!tester_files.vmdk,intranet,mini-web" \
--backup-how=hot \
--use-smtp=1 \
--mail-to=name@<domain>.info \
--backup-id=002 \
--description="XSITools backup of production VMs from <path>" \
--exec=yes >> "<path>/scripts/xsi-dir/var/logs/xsibackup.log"

Thanks you,
Dennis

Offline

Board footer