Skip to content

Instantly share code, notes, and snippets.

View beastwick's full-sized avatar

Brian Bostwick beastwick

View GitHub Profile
@rmi1974
rmi1974 / do_it_yourself_backup_system_using_rsync.md
Last active March 29, 2020 15:45
Do-It-Yourself Backup System Using Rsync #backup #rsync #commandlinefu

Do-It-Yourself Backup System Using Rsync

Courtesy of [Do-It-Yourself Backup System Using Rsync][1].

Written by Kevin Korb as a presentation for GOLUG Presented 2010-03-02

When you run rsync you will tell it to backup the live file system into a new empty directory and to look to the previous backup for files that have already been backed up. Whenever rsync finds a new

@crittermike
crittermike / wget.sh
Last active January 6, 2026 13:33
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@mhitza
mhitza / lvm_snapshots.md
Created March 24, 2016 01:39
LVM snapshots

LVM snapshots are logical volumes that reflect the state of the snapshoted volume at the exact moment in time the snapshot was created. Useful for backups and reference points we can revert back to.

Creating snapshots

$ sudo lvcreate --size 5G --snapshot --name root-backup /dev/vg0/root
  Logical volume "root-backup" created.