Sauvegarde

Media

Disque USB

Actuellement non chiffré.

Deux machines

Sauvegarde croisées.

Cloud

Un compte HubiC.

Données

Mails

Sauvegarde croisée à base de duplicity via rsync sur ssh.

# ssh-agent
# ssh-add ...
# sh /home/backup/backup.sh

backup.sh:

#!/bin/sh

#
# Destination
#
DESTINATION=rsync://bonnefil@192.168.0.1//storage/backup/hermes/

#
# Duplicity options
#
OPTIONS="--no-encryption --full-if-older-than 1M -v5"

#
# Sources
#
SOURCES="--include-globbing-filelist /root/backup/globbing-list.txt /"

#
# Archiving
#
duplicity $OPTIONS $SOURCES "$DESTINATION"

Photos

Sauvegarde sur disque USB.

#!/bin/sh
SUBDIR=$1
SRC=/storage/Photos/$SUBDIR
DST=/media/bonnefil/My\ Passport/Photos/$SUBDIR
rsync -rlptD --progress "$SRC" "$DST"

Infos

Sauvegarde hermes

--------------[ Statistiques de sauvegarde ]--------------
StartTime 1389047307.29 (Mon Jan  6 23:28:27 2014)
EndTime 1389047486.36 (Mon Jan  6 23:31:26 2014)
ElapsedTime 179.07 (2 minutes 59.07 seconds)
SourceFiles 7
SourceFileSize 520609039 (496 MB)
NewFiles 7
NewFileSize 520609039 (496 MB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 7
RawDeltaSize 520596751 (496 MB)
TotalDestinationSizeChange 383189604 (365 MB)
Errors 0
----------------------------------------------------------

Sauvegarde hercules

--------------[ Backup Statistics ]--------------
StartTime 1389045156.09 (Mon Jan  6 22:52:36 2014)
EndTime 1389052209.51 (Tue Jan  7 00:50:09 2014)
ElapsedTime 7053.42 (1 hour 57 minutes 33.42 seconds)
SourceFiles 86991
SourceFileSize 64335846010 (59.9 GB)
NewFiles 86991
NewFileSize 64335846010 (59.9 GB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 86991
RawDeltaSize 64271887298 (59.9 GB)
TotalDestinationSizeChange 55969764706 (52.1 GB)
Errors 0
-------------------------------------------------

TODO

Séparer les sauvegardes :

  • etc-hermes, etc-hercules
  • home
  • mail
  • photos