commit 0d4946ca6d354f8b0f1ee3d57a5dc1e5b6b7ecff
parent 9021662dd8923c9f186bb41d28e656e7a55cd40b
Author: Andrew <andrewlaack1@gmail.com>
Date: Tue, 16 Apr 2024 17:46:05 -0500
Added some general notes
Diffstat:
5 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/LinuxStuff.md b/LinuxStuff.md
@@ -0,0 +1,10 @@
+:linux: :personal: :self-hosting:
+# Linux Stuff
+
+These are links to linux stuff that I want to remember, but sometimes forget. Consider, I am starting this on 24/04/16 so I will not include any basic things as I already know them well.
+
+## Notes
+
+[[rsync.md]]
+[[awk.md]]
+[[sed.md]]
diff --git a/awk.md b/awk.md
@@ -0,0 +1 @@
+:todo:
diff --git a/index.md b/index.md
@@ -13,4 +13,4 @@ This is the index for my main note classifications. I will maintain this as a ho
## Other
[[ComputerArchitecture.md]]
-
+[[LinuxStuff.md]]
diff --git a/rsync.md b/rsync.md
@@ -0,0 +1,19 @@
+# Rsync
+
+Notes on backups with rsync
+
+## Notes
+
+Rsync is the best way to backup a folder to another folder. This is especially useful when mounting another drive and then setting up a backup system to backup a folder to that drive.
+
+Usage: rsync -av --delete /home /srv/backup
+
+The above command states to use archive mode to preserve permissions, v for verbose mode (optional), --delete says delete any files in the destination that don't exist in the source. We then specify the folder to sync and the location to sync it to.
+
+I have this aliased to backup in my bashrc with the following line:
+
+```bash
+alias backup='sudo rsync -av --delete /home/ /srv/backup'
+```
+
+it might make sense to remove the path stuff, but meh I don't plan on moving stuff around. Realistically, I might also want to create a systemd service to do this, but that seems like too much work for it to be worthwhile.
diff --git a/sed.md b/sed.md
@@ -0,0 +1 @@
+:todo: