This page (revision-17) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:05 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
17 23-Apr-2022 17:06 1 KB Harry Metske to previous
16 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
15 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
14 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
13 23-Apr-2022 17:05 1 KB 10.0.0.138 to previous | to last
12 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
11 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
10 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
9 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
8 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
7 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
6 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
5 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
4 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
3 23-Apr-2022 17:05 881 bytes Harry Metske to previous | to last
2 23-Apr-2022 17:05 715 bytes Harry Metske to previous | to last
1 23-Apr-2022 17:05 514 bytes Harry Metske to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 3 changed one line
[{TableOfContents }]
Backups gaan met rsync van de 3 laptops naar de grafspee (hardware node) m.b.v. rsync.
At line 5 changed 2 lines
\\
Backups go with rsync from the laptop to apollo (hardware node) with a 1TB external USB disk.
Target directory is {{/var/lib/vz/backup/<sysname>}}. (%%small /var/lib/vz is mountpoint met 100 GB}}
At line 8 changed 3 lines
Target directories are
* {{/mnt/seagate2/harry/athena/}}
* {{/mnt/seagate2/esther}}
Systemen zijn:
* bismarck claudia)
* gladiator (esther)
* interceptor (anneke)
At line 12 changed one line
!!! Backup with rsync
! Inrichting
At line 14 changed 9 lines
{{{
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]
}}}
* grafspee
** {{useradd --home /home/claudia --gid 1001 --create-home --uid 1001 --shell /bin/bash claudia}}
** {{passwd claudia}}
* bismarck:
** {{ssh-keygen}}
** {{ssh-copy-id grafspee}}
At line 25 changed 3 lines
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
! rsync proces
At line 29 removed one line
}}}
At line 31 changed 2 lines
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
rsync --recursive --exclude='/home/${USER}/.cache' --exclude='/home/${USER}/.config' --exclude='/home/${USER}/.java' /home/${USER} grafspee:/var/lib/vz/backup/bismarck
At line 34 removed one line
!!! The old way (not used anymore)
At line 28 added one line
At line 39 removed 21 lines
!! 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.