dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f74e0673a201e188f755d44bba2e3937f150fb57
parent 18d8280511ecef44a9a244a9f9a0aabe34040ca2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  4 Jul 2019 09:14:13 +0200

Add two more backup scripts

Diffstat:
A.local/bin/backup-adamsgaard | 7+++++++
A.local/bin/backup-usb | 8++++++++
2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/.local/bin/backup-adamsgaard b/.local/bin/backup-adamsgaard @@ -0,0 +1,7 @@ +#!/bin/sh +dest=ad@adamsgaard.dk:/Volumes/ext2/backup +rsync -ravzhe ssh --delete /etc/ "$dest"/etc/ +rsync -ravzhe ssh --delete --progress \ + --exclude=tmp --exclude=.cache --exclude=videos/tmp \ + --exclude=tags --exclude=.julia \ + ~/ "$dest"/home/ad/ diff --git a/.local/bin/backup-usb b/.local/bin/backup-usb @@ -0,0 +1,8 @@ +#!/bin/sh +dest=/mnt/backup +rsync -ravzhe ssh --delete /etc/ "$dest"/etc/ +mount "$dest" +rsync -ravzhe ssh --delete --progress \ + --exclude=tmp --exclude=.cache --exclude=videos/tmp \ + --exclude=tags --exclude=.julia \ + ~/ "$dest"/home/ad/