backup_with_rsync
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| backup_with_rsync [2026/02/05 16:30] – steve | backup_with_rsync [2026/02/06 16:06] (current) – Just adding more notes. steve | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== Backup with rsync ==== | ==== Backup with rsync ==== | ||
| - | So, this is what I've been doing to make backups of machines for years, it stores permissions, | + | So, this is what I've been doing to make backups of machines for years, it stores permissions, |
| + | \\ | ||
| This is what I see in my /Backup folder with;\\ | This is what I see in my /Backup folder with;\\ | ||
| '' | '' | ||
| Line 36: | Line 37: | ||
| <code bash / | <code bash / | ||
| # =-=-=-=-=-=- File locations and variables. | # =-=-=-=-=-=- File locations and variables. | ||
| - | # Where to write the backups | + | # Where to write the backups, begins with / only. |
| SNAPSHOT_RW=/ | SNAPSHOT_RW=/ | ||
| - | # What directory to back up, begins and ends in / | + | # What directory to back up, begins and ends in /. |
| SNAP_DIR="/"; | SNAP_DIR="/"; | ||
| # Where to store the list of files and directories that we backed up. | # Where to store the list of files and directories that we backed up. | ||
| Line 216: | Line 217: | ||
| </ | </ | ||
| \\ | \\ | ||
| + | Backing up another partition requires only to create another .conf file, creating the folder to drop the backups into, and copying the ' | ||
| + | Below is the .conf for the EFI partition; | ||
| + | '' | ||
| + | <code bash / | ||
| + | # =-=-=-=-=-=- File locations and variables. | ||
| + | # Where to write the backups, begins with / only. | ||
| + | SNAPSHOT_RW=/ | ||
| + | # What directory to back up, begins and ends in / | ||
| + | SNAP_DIR="/ | ||
| + | # Where to store the list of files and directories that we backed up. | ||
| + | FILELIST=$SNAPSHOT_RW/ | ||
| + | # Summary file, a short list of actions taken by rsync to complete the backup. | ||
| + | SUMMARY=$SNAPSHOT_RW/ | ||
| + | # Stuff not to back up, there is always stuff to not back up! | ||
| + | EXCLUDES=$SNAPSHOT_RW/ | ||
| + | # How many snapshot backups do we want to keep? Must be at least 2! | ||
| + | NUM_SNAP=10; | ||
| + | </ | ||
| + | \\ | ||
| + | Other stuff;\\ | ||
| + | In one of the date points in the backup folder, there are a few added files, '' | ||
| + | '' | ||
| + | <code bash> | ||
| + | total 8389772 | ||
| + | drwxr-xr-x | ||
| + | lrwxrwxrwx | ||
| + | drwxr-xr-x | ||
| + | drwxr-xr-x | ||
| + | drwxr-xr-x | ||
| + | drwxr-xr-x 149 root root 12288 Feb 4 14:30 etc | ||
| + | -rw------- | ||
| + | drwxr-xr-x | ||
| + | drwxr-xr-x | ||
| + | lrwxrwxrwx | ||
| + | lrwxrwxrwx | ||
| + | drwxr-xr-x | ||
| + | drwx------ | ||
| + | drwxr-xr-x | ||
| + | drwxr-xr-x | ||
| + | drwxr-xr-x | ||
| + | dr-xr-xr-x | ||
| + | drwx------ | ||
| + | drwxr-xr-x | ||
| + | lrwxrwxrwx | ||
| + | drwxr-xr-x | ||
| + | drwxr-xr-x | ||
| + | -rw-r--r-- | ||
| + | dr-xr-xr-x | ||
| + | drwxrwxrwt | ||
| + | drwxr-xr-x | ||
| + | drwxr-xr-x | ||
| + | </ | ||
| + | Notice above that the actual files (the soft links) in this folder have inode counts of 10. That means that they haven' | ||
| + | \\ | ||
| + | Below, you can see that files that change every day change their link count;\\ | ||
| + | '' | ||
| + | <code bash> | ||
| + | -rw-r--r-- 1 root root 22146 Jan 26 06:47 / | ||
| + | -rw-r--r-- 1 root root 23063 Jan 27 12:44 / | ||
| + | -rw-r--r-- 1 root root 23992 Jan 28 06:45 / | ||
| + | -rw-r--r-- 1 root root 24790 Jan 29 06:35 / | ||
| + | -rw-r--r-- 1 root root 28212 Jan 30 09:05 / | ||
| + | -rw-r--r-- 1 root root 31634 Jan 31 12:40 / | ||
| + | -rw-r--r-- 1 root root 3422 Feb 1 14:22 / | ||
| + | -rw-r--r-- 1 root root 6844 Feb 2 06:21 / | ||
| + | -rw-r--r-- 1 root root 10096 Feb 3 06:09 / | ||
| + | -rw-r--r-- 1 root root 11239 Feb 4 08:39 / | ||
| + | </ | ||
backup_with_rsync.1770309023.txt.gz · Last modified: by steve
