STOREBACKUPMOUNT(1)

πŸ“¦ version 3.5.2, in nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’… STOREBACKUPMOUNT(1) β€” the perl one, user-contributed, we love her

okay so bestie, before we dive in: this is a page from the User Contributed Perl Documentation section, and she's here to mount your stuff, run your storeBackup programs, and unmount it all again. let's go πŸŽ€


✨ NAME ✨

storeBackupMount mounts file systems β€” the ones defined in /etc/fstab, yeah β€” and then starts the storeBackup-related programs for you. 🫢

two vibes for ordering, and they are not the same, ok:

  • if you go the command line route, the order of execution follows the order of the --storeBackup* options you typed
  • if you go the configuration file route, the order of execution follows the option orderOfExecution

no cap, that's it. ✨


🌸 SYNOPSIS 🌸

        storeBackupMount.pl --help
or
        storeBackupMount.pl -g configFile
or
        storeBackupMount.pl -f configFile
or
        storeBackupMount.pl [-s servers] [-d] [-l logFile
               [--suppressTime] [-m maxFilelen]
               [[-n noOfOldFiles] | [--saveLogs]]
               [--compressWith compressprog]]
            [--storeBackup storeBackup-Params]
            [--storeBackupUpdateBackup storeBackupUpdateBackup-Params]
            [--storeBackupCheckBackup storeBackupCheckBackup-Params]
            [--storeBackupCheckSource storeBackupCheckSource-Params]
            [--storeBackupDel storeBackupDel-Params]
            [--printAndStop] [-k killTime] [-T tmpdir] [mountPoints...]

like, pick a lane, any lane πŸ’β€β™€οΈ


πŸ¦‹ DESCRIPTION πŸ¦‹

this script literally does these things, in order:

  • checks an nfs server with ping πŸ‘€
  • mounts that server via a list of mount points
  • starts storeBackup (with a config file)
  • umounts that server

main character energy from start to finish, honestly.


πŸ’… OPTIONS πŸ’…

  • --help β€” show this help. the classic. πŸŽ€
  • --generate, -g β€” generate a template of the configuration file. starter pack, basically ✨
  • --file, -f β€” configuration file (instead of, or additionally to, options on the command line)
  • --servers, -s β€” name(s) or ip address(es) of the nfs server(s). this option can be repeated multiple times πŸ”
  • --debug, -d β€” generate some debug messages. she's chatty, we stan πŸ’¬
  • --logFile, -l β€” logFile for this process. default is STDOUT.
  • --suppressTime β€” suppress output of time in logfile. timestamps? not today πŸ™ˆ
  • --maxFilelen, -m β€” maximal length of log file, default = 1e6
  • --noOfOldFiles, -n β€” number of old log files, default = 5
  • --saveLogs β€” save log files with date and time instead of deleting the old (with [-noOfOldFiles]). hoarder behavior but make it cute πŸ—‚οΈ
  • --compressWith β€” compress saved log files (e.g. with 'gzip -9'). default is 'bzip2'. this parameter is parsed like a line in the configuration file and normally has to be quoted. ⚠️ quoted, bestie, don't forget
  • --storeBackup β€” run storeBackup.pl. use this parameter as options for storeBackup.pl. this parameter is parsed like the line in the configuration file and normally has to be quoted, eg. '-f stbu.conf'
  • --storeBackupUpdateBackup β€” run storeBackupUpdateBackup.pl. use this parameter as options for storeBackupUpdateBackup.pl. this parameter is parsed like the line in the configuration file and normally has to be quoted, eg. '-b /backupDir'
  • --storeBackupCheckBackup β€” run storeBackupCheckBackup.pl. use this parameter as options for storeBackupCheckBackup.pl. this parameter is parsed like the line in the configuration file and normally has to be quoted, eg. '-c /backupDir'
  • --storeBackupCheckSource β€” run storeBackupCheckSource.pl. use this parameter as options for storeBackupCheckSource.pl. this parameter is parsed like the line in the configuration file and normally has to be quoted, eg. '-s /home/bob -b /backupDir'
  • --storeBackupDel β€” run storeBackupDel.pl. use this parameter as options for storeBackupDel.pl. this parameter is parsed like the line in the configuration file and normally has to be quoted, eg. '-f stbu.conf'
  • --printAndStop, -p β€” print options and stop processing. a little look, no commitment 🫢
  • --killTime -k β€” time until any of the programs started will be killed. default is 365 days. the time range has to be specified in format 'dhms', e.g. 10d4h means 10 days and 4 hours ⏳
  • --tmpdir, -T β€” directory for temporary files, default is </tmp>
  • mountPoints β€” List of mount points needed to perform the backup. This must be a list of paths which have to be defined in /etc/fstab.
    • if you add 'ro,' or 'rw,' to the beginning of a mount point, you can overwrite that option set in /etc/fstab

example:

ro,/fileSystemToRead

will mount /fileSystemToRead read only, even if the corresponding entry in /etc/fstab mounts is read/write πŸ”’

only root is allowed to use this feature! πŸ‘‘ like, actual root. not "I'm the main character" root.

πŸ”₯ EXIT STATUS πŸ”₯

  • 0 -> everything is ok ✨ slay
  • 1 -> error from called program 😭
  • 2 -> error from storeBackupMount πŸ’€
  • 3 -> error from both programs. double trouble, not the fun kind πŸ™ˆ

Copyright (c) 2004-2022 by Heinz-Josef Claes (see README). Published under the GNU General Public License v3 or any later version. 🫢


okay that's the whole page bestie, you're officially literate in storeBackupMount πŸ’–

this lil artifact is perl v5.34.0, dated 2022-03-20 β€” go forth and mount responsibly πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from