Purpose There will come a day where someone will accidentally run an chmod or chown on / or some other directory and change all ownership and/or permissions on all files under that directory. Having this script run periodically will save you ass. Notes The script already excludes the basic filesystems you wouldn’t want to scan…
Tarsnap Backup Shell Script
This is a Tarsnap backup script that allows the user to fill in all include, exclude and backup options and the script will generate and run the tarsnap command. The script also generates a backup log which will be emailed to the specified recipients. Requirements Tarsnap account For email to function some type of MTA…
Install Tarsnap on RHEL/CentOS 6/7
Before following this tutorial make sure you have signed up for your Tarsnap account. Setup Tarsnap GPG Verification Step 1: Create your GPG configuration files by running gpg.
1 2 |
gpg |
Output should resemble
1 2 3 4 5 6 7 |
gpg: directory `/root/.gnupg' created gpg: new configuration file `/root/.gnupg/gpg.conf' created gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/root/.gnupg/secring.gpg' created gpg: keyring `/root/.gnupg/pubring.gpg' created gpg: Go ahead and type your message ... |
At the point press Ctrl+C to exit. Step 2: Create directory /opt/build and change to that directory.
1 2 |
mkdir -p /opt/build |
1 2 |
cd /opt/build |
Step 3: Download…
-
Recent Posts
Categories
- Audit
- Backups
- Clustering
- Development
- FreeBSD
- FreeIPA
- GlusterFS
- Guru Labs
- IPV6
- Katello
- Linux
- Linux
- Linux
- Logical Volume Manager
- mysql
- Networking
- Pacemaker
- Performance Monitoring
- Red Hat Enterprise Linux
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Satellite Server 6
- Red Hat Summit
- Security
- Shell Scripting
- Solaris
- Storage Management
- Training
- Troubleshooting
- Uncategorized
- VAS/QAS Administration
- VERITAS Cluster Server
- VERITAS InfoScale
- VERITAS NetBackup
Tags
agent backup centos 6 cluster clusvcadm cman df fence fencing filesystem find fstype gl236 glusterfs guru labs hammer-cli hardening HP ILO infoscale oracle ownership pacemaker pcp pcs permissions pmcd QAS red hat 6 resource resources rgmanager rhel rhel 6 rhel 7 scripting security ssh storage sync-plan tarsnap training VAS vcs veritas