!! Backup laptops

[{TableOfContents }]

\\
Backups go with rsync from the laptop to apollo (hardware node) with a 1TB external USB disk.

Target directories are
* {{/mnt/seagate2/harry/athena/}}
* {{/mnt/seagate2/esther}}

!!! Backup with rsync

{{{
cd ~
rsync -a . apollo.computerhok.nl:/mnt/sdb2/esther/ 
}}}
{{{
sent 19455014824 bytes  received 2494918 bytes  9950145.61 bytes/sec
total size is 34192630272  speedup is 1.76
rsync warning: some files vanished before they could be transferred (code 24) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
}}}


Or for my MacBook:
{{{
time rsync -a .cf .ssh .gnupg .flyrc .zsh_history .zshrc .aws .credhub .oh-my-zsh .git-credentials .gitconfig Pictures .zoomus .bashrc .bash_history Documents workspace Downloads go  apollo:/mnt/seagate/harry/athena

}}}
{{{
sent 9,778,021,581 bytes  received 1,117,494 bytes  10,331,895.48 bytes/sec
total size is 9,771,719,145  speedup is 1.00
}}}
!!! The old way (not used anymore)

!! Exclude list

Rsync is performed with an {{ --exclude-from }} parameter. The file that holds the exclusions, is centrally managed here : [RSYNCEXCLUDELIST]

!! Rsync execution

The script is like this :
%%prettify
{{{
#!/bin/bash
#
#  backup with rsync to another host
EXCLUDEFILE=`mktemp`
wget --quiet -O - 'http://www.computerhok.nl/wiki/Wiki.jsp?page=RSYNCEXCLUDELIST'|grep EXCLUDEPATTERN | cut -d" " -f2 > $EXCLUDEFILE
echo "excluding following patterns:" `cat ${EXCLUDEFILE}`
rsync --verbose --recursive --delete-excluded --exclude-from=${EXCLUDEFILE} /home/${USER}/ apollo:/mnt/seagate2/harry/athena/home
rm $EXCLUDEFILE
}}}
%%


!Rsync off site

That should be done with something I still have to setup, plain copying/dumping the 1TB external disk to a second one that is remote.