# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Fre Mär 09 19:45:57 CET 2007 [mika]
################################################################################
# Ressources:
# http://apt-get.dk/howto/backup/
. /etc/grml/lsb-functions
check4root
-check4progs dirvish rsync ssh-keygen ssh-copy-id
+check4progs dialog dirvish rsync ssh-keygen ssh-copy-id
PN="$0"
CONFFILE=/etc/dirvish/master.conf
$CLIENT 22:00
# add-another-client-here 22:00
-# See http://www.dirvish.org/debian.howto.html for further details:
+ # See http://www.dirvish.org/debian.howto.html for further details:
expire-default: +30 days
expire-rule:
# MIN HR DOM MON DOW STRFTIME_FMT
# TODO / integrate?
cronsetup() {
- test -f ~/.keychain/`uname -n`-sh && source ~/.keychain/`uname -n`-sh
+ test -f ~/.keychain/`uname -n`-sh && . ~/.keychain/`uname -n`-sh
}
get_backup_dir() {
einfo "Running $PN was successful. Enjoy using dirvish!" ; eend 0
echo
einfo "Please adjust ${BACKUP_DIR}/${CLIENT}/dirvish/default.conf according to your needs.
-$MASTERINFO
+$MASTERINFO
Then run the following command to create an initial backup:
dirvish --summary long --vault $CLIENT --init