aboutsummaryrefslogtreecommitdiffstats
path: root/fish/functions/backup-home.fish
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-10-05 16:33:10 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-10-05 16:33:10 +0100
commit9fff448654308b1e1b3d1129c0255544f56c25cc (patch)
treeeda78717611d7a6b2204ba8e9f73af90e69ae90b /fish/functions/backup-home.fish
initial
Diffstat (limited to 'fish/functions/backup-home.fish')
-rw-r--r--fish/functions/backup-home.fish5
1 files changed, 5 insertions, 0 deletions
diff --git a/fish/functions/backup-home.fish b/fish/functions/backup-home.fish
new file mode 100644
index 0000000..651d7f4
--- /dev/null
+++ b/fish/functions/backup-home.fish
@@ -0,0 +1,5 @@
+# Defined in /tmp/fish.38PNLg/backup-home.fish @ line 2
+function backup-home --description 'Backup /home/lemon and /etc to /home-backup/rsync/'
+ sudo rsync -avzhe --delete --progress /home/ /home-backup/rsync_home/ --exclude-from /home/lemon/.rsync_excludes.txt --delete-excluded
+ sudo rsync -avzhe --delete --progress /etc/ /home-backup/rsync_etc/
+end