- us USA
- ad Andorra
- af Afghanistan
- ara Arabic
- al Albania
- am Armenia
- az Azerbaijan
- by Belarus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ========================================================= | |
# LVM Snapshot Remote Backup | |
# Ismet Handzic 2019 | |
# ========================================================= | |
# | |
# This script creates a LVM partition snapshot and sends | |
# it to a remote location via rsync | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
########################################## | |
# Ismet Handzic (2019) | |
# | |
# You can add this script as an alias on your system | |
# - Add this script to directory "/home/<YOUR USERNAME>/.bashrc_scripts | |
# - In "/home/<YOUR USERNAME>/.bashrc", add: | |
# alias internet='/home/<YOUR USERNAME>/.bashrc_scripts/check_internet.sh' | |
# - Use in terminal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ============================================= | |
# SSH CONFIG | |
# ============================================= | |
# | |
# The SSH config file is typically located in your home directory | |
# under | |
# <HOME DIRECTORY>/.ssh/config | |
# | |
# Make sure you give the "config" file appropriate permissions | |
# chmod 600 <HOME DIRECTORY>/.ssh/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This command compresses your home directory | |
sudo tar -cpf home_dir_backup.tar /home/$USER \ | |
--exclude-caches-all \ | |
--exclude-backups \ | |
--exclude=home_dir_backup.tar \ | |
--exclude=.cache \ | |
--exclude=.config \ | |
--exclude=.debug \ | |
--exclude=.dbus \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################# | |
# | |
# crontab can be edited using the following command: | |
# For root user: sudo crontab -e | |
# For current user: cronttab -e | |
# For specific user: sudo cronttab -e -u ismet | |
# | |
# To view all current crontab entries: | |
# For root user: sudo crontab -l | |
# For current user: cronttab -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################################### | |
# Automatic SSH Public Key Distributor Script | |
############################################################################### | |
# | |
# This script automates the distribution of your public SSH key | |
# Once the public SSH key is on the remote system, you don't have to | |
# use a manual password to enter that remote system. | |
# |
OlderNewer