HPR3657: Small time sysadmin
00:00
Creating Backups.
This script was trimmed to serve as an example.
The three options shown (email, jop, dots) demonstrates, how to list items with case statements:
Single item/directory (jop).
Multiple items in single directory (dots).
Multiple items in multiple directories (email).
The text files created after the archive serves as an item list
with current permissions.
tar --directory= /path/to/directory/ --create --file INSERT_ARCHIVE_NAME.tar /path/to/file;
#!/bin/bash
#License: GPL v3
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You s
Comments
00:00