STOREBACKUPMOUNT(1)
π 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 isSTDOUT.--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β runstoreBackup.pl. use this parameter as options forstoreBackup.pl. this parameter is parsed like the line in the configuration file and normally has to be quoted, eg.'-f stbu.conf'--storeBackupUpdateBackupβ runstoreBackupUpdateBackup.pl. use this parameter as options forstoreBackupUpdateBackup.pl. this parameter is parsed like the line in the configuration file and normally has to be quoted, eg.'-b /backupDir'--storeBackupCheckBackupβ runstoreBackupCheckBackup.pl. use this parameter as options forstoreBackupCheckBackup.pl. this parameter is parsed like the line in the configuration file and normally has to be quoted, eg.'-c /backupDir'--storeBackupCheckSourceβ runstoreBackupCheckSource.pl. use this parameter as options forstoreBackupCheckSource.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β runstoreBackupDel.pl. use this parameter as options forstoreBackupDel.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.10d4hmeans 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
- if you add
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 β¨ slay1-> error from called program π2-> error fromstoreBackupMountπ3-> error from both programs. double trouble, not the fun kind π
π COPYRIGHT π
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
- nixos 26.05: store-backup 3.5.2
- nixpkgs unstable: storebackup 3.5.2
- opensuse-leap 16.0: storeBackup 3.5.2-bp160.1.9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms