Skip to content

Instantly share code, notes, and snippets.

@fheinle
Last active December 22, 2015 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fheinle/6448114 to your computer and use it in GitHub Desktop.
Save fheinle/6448114 to your computer and use it in GitHub Desktop.
Konfiguration für rsnapshot im Heimverzeichnis
VirtualBox VMs/
.cache/
.dbus/
.gvfs/
.local/share/gvfs-metadata/
.local/share/Trash/
#################################################
# rsnapshot.conf - rsnapshot configuration file #
#################################################
# #
# PLEASE BE AWARE OF THE FOLLOWING RULES: #
# #
# This file requires tabs between elements #
# #
# Directories require a trailing slash: #
# right: /home/ #
# wrong: /home #
# #
#################################################
#######################
# CONFIG FILE VERSION #
#######################
config_version 1.2
###########################
# SNAPSHOT ROOT DIRECTORY #
###########################
# Der Pfad, unter dem die Backups gespeichert werden sollen.
snapshot_root /media/extern2/Backup/Laptop/Snapshots/
# Wichtige Option bei Verwendung externer Datenträger,
# die vielleicht nicht immer eingehängt werden: Das Verzeichnis
# für die Backups nicht erstellen. Wenn der Datenträger nicht
# eingehängt ist, wird dann auch kein Backup gemacht
#
no_create_root 1
#################################
# EXTERNAL PROGRAM DEPENDENCIES #
#################################
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_logger /usr/bin/logger
#########################################
# BACKUP INTERVALS #
# Must be unique and in ascending order #
# i.e. hourly, daily, weekly, etc. #
#########################################
# wie viele Sicherungen vorgehalten werden sollen
# wer stündlich Sicherungen machen will, kann das
# ebenfalls festlegen
#
#retain hourly 6
retain daily 7
retain weekly 4
retain monthly 3
############################################
# GLOBAL OPTIONS #
# All are optional, with sensible defaults #
############################################
# Verbose level, 1 through 5.
# 1 Quiet Print fatal errors only
# 2 Default Print errors and warnings only
# 3 Verbose Show equivalent shell commands being executed
# 4 Extra Verbose Show extra verbose information
# 5 Debug mode Everything
#
verbose 2
loglevel 3
# diesen Pfad anpassen!
lockfile /home/florian/.local/share/rsnapshot.pid
# Eine Datei, in der Ausnahmen für die Sicherung definiert werden
# Man sollte etwa den Papierkorb, caches, etc ausschließen
# (die Datei wird direkt an rsync übergeben)
#
exclude_file /home/florian/.config/rsnapshot-excludes
# If your version of rsync supports --link-dest, consider enable this.
# This is the best way to support special files (FIFOs, etc) cross-platform.
# The default is 0 (off).
#
link_dest 1
###############################
### BACKUP POINTS / SCRIPTS ###
###############################
# Das zu sichernde Verzeichnis natürlich anpassen
#
backup /home/florian/ localhost/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment