backups: keep the seed script's docstring site-neutral

The import script is bundled in a multi-site product, so its usage examples
should not name one site's share layout or a dev box path.
This commit is contained in:
cproudlock
2026-08-07 14:30:14 -04:00
parent a10e695d7c
commit bb4169cd8c

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env python #!/usr/bin/env python
"""Seed backup history from a directory of existing NTLARS .reg files. """Seed backup history from a directory of existing NTLARS .reg files.
The share already holds ~150 per-machine backups collected by hand over years A site's file share typically already holds per-machine backups collected by
(S:\\DT\\RegFiles\\Dnc\\Backup Copies\\<machinenumber>.reg and the pxe-images hand over years, named by machine number. Importing them gives every machine a
mirrors). Importing them gives every machine a baseline revision on day one, baseline revision on day one, so the feature is useful before the fleet
so the feature is useful before the fleet collector has run even once. collector has run even once.
Files are keyed by machine number in the FILENAME, which is how the share names Files are keyed by machine number in the FILENAME, which is how the share names
them. The MachineNo embedded in the file is compared against it and any them. The MachineNo embedded in the file is compared against it and any
@@ -14,7 +14,7 @@ baseline.
Dry run by default. Nothing is written without --commit. Dry run by default. Nothing is written without --commit.
venv/bin/python scripts/import_ntlars_backups.py /home/camp/pxe-images/ntlars-deploy venv/bin/python scripts/import_ntlars_backups.py /path/to/regs
venv/bin/python scripts/import_ntlars_backups.py /path/to/regs --commit venv/bin/python scripts/import_ntlars_backups.py /path/to/regs --commit
""" """