aboutsummaryrefslogtreecommitdiffstats
path: root/fish/functions/backup-home.fish
diff options
context:
space:
mode:
Diffstat (limited to '')
-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