"With my weak psychic powers, I can't see any of that"
Not relevant to the problem in hand, but to assist your comprehension:
- The cli-based script starts running, loads the status codes (for later) and the functions in the master file then parses the command line before invoking the action OR the GUI starts running and performs similar steps but uses a GTK+ interface to load instructions before handing over control to the master.
- A configuration file, either the default or as specified on the command line is loaded.
- The master script then reads the global default items.
- Depending upon any command line options/GTK specified the master script determines which sections to perform, in what order and whether in parallel. Importantly it then determines the correct dump level.
- For each filesystem that needs to be backed up the master script determines an appropriate name for the dump, what zipping is required and ultimately calls an appropriate slave for the filesystem type being backed up using OpenSSH.
- Eventually all tasks having completed, the master script reads the log files, summarises them and emails a report to root.
Slaves are provided for EFS2/3/4, for XFS and where neither of those are appropriate then either a tar or cpio based slave is available that uses a sqlite3 database to provide the multi-level functionality of other slaves.
As I said, not really relevant but might assist your weak psychic powers.
"I can't find a way [...]"
What I initially hoped to do was to ensure that only the actual saveset went to SYS$OUTPUT and that all error messages went to SYS$ERROR. However for the purposes of OpenSSH the *NIX streams stdout and stderr are more appropriate names. This would fit in perfectly with the existing system, but I was not able to find a way to ensure it worked.
Make more sense now?
"I don't know what that means to you. _How_, exactly?"
ssh gemini.home "BACKUP /IMAGE /RECORD /COMMENT='gemini-dka100' dka100: '<FQDN>:/tmp/bups-gemini-dka100-rkMXUm'/save_set >${target_dir}/${target}.${base_name}" 2>"${log_dir}/${target}.log"
Which kind of "a remote file"? Which kind of "won't work" is this?
A remote file is a file on a system other than the one executing the command. "Won't work" means that it does not function as wanted.
As usual ... happen
Really? Several hundred lines of code, two pages of configuration file, two dokuwiki articles, running to about 10 sheets of paper when printed out?
There is a good reason for a "vague description", I really think that the details of how to back up a *NIX system would not help, only cloud the problem.
In what sense ... a valid file spec on VMS
Compare:
Code: Select all
$ scp "<FQDN>:~/readme" .
readme 100% 2314 226.0KB/s 00:00
$ dir readme.*
Directory DISK$USERS:[JMR]
readme.;1
Total of 1 file.
Your final points:
- NFS is a possibility. Not optimal but a fallback.
- Again sub-optimal. The minimum size for a "spool" disk would be at least equal to the used space on my largest disk. Do-able, but a wast of spinning rust.
Extra software is not really an issue. The saveset should remain in native VMS format, but simply on a disk in my safe. If the VM is lost, then it's relatively straightforward to build a new vanilla machine just for the purpose of rebuilding the system disk image. It would be nice to use standalone backup, but that really is revealing my age!