Compare commits
No commits in common. "cf19166215c6c0b4de45825ef7a6d7347d79c988" and "c7d45776903693e4cf8428a048c2c5b7a98dc3c1" have entirely different histories.
cf19166215
...
c7d4577690
|
@ -25,8 +25,8 @@ define wmdeit_backup::borg_backup
|
|||
(
|
||||
$server = $title,
|
||||
$dirs = [],
|
||||
$encryption = "repokey",
|
||||
$passphrase = "`/bin/cat /root/borg_passphrase.txt`",
|
||||
$encryption = "keyfile",
|
||||
$passphrase = "",
|
||||
$ssh_user = 'root',
|
||||
$ssh_port = '22',
|
||||
$ssh_check_hostkey = 'no',
|
||||
|
@ -40,8 +40,6 @@ define wmdeit_backup::borg_backup
|
|||
$repos = $wmdeit_backup::borg::repos
|
||||
|
||||
$borg_cmd = $wmdeit_backup::borg::borg_cmd
|
||||
$sshfs_options = $wmdeit_backup::borg::sshfs_options
|
||||
|
||||
|
||||
$repo = "$repos/$title"
|
||||
|
||||
|
@ -64,7 +62,7 @@ define wmdeit_backup::borg_backup
|
|||
content => "#!/bin/sh
|
||||
export BORG_PASSPHRASE=$passphrase
|
||||
D=`date +%F`
|
||||
$wmdeit_backup::borg::sshfs_cmd $sshfs_options -oStrictHostKeyChecking=$ssh_check_hostkey -oPort=$ssh_port $ssh_user@$server:/ $mnt
|
||||
$wmdeit_backup::borg::sshfs_cmd -oStrictHostKeyChecking=$ssh_check_hostkey -oPort=$ssh_port $ssh_user@$server:/ $mnt
|
||||
cd $mnt
|
||||
CMD=\"$borg_cmd create ${repo}::$title-\${D} $backup_dirs\"
|
||||
\$CMD
|
||||
|
|
|
@ -12,19 +12,8 @@ class wmdeit_backup::params {
|
|||
]
|
||||
|
||||
$sshfs_cmd = '/usr/local/bin/sshfs'
|
||||
$sshfs_options = '-o direct_io' # buggy sshfs driver under freebsd
|
||||
$borg_cmd = "/usr/local/bin/borg"
|
||||
}
|
||||
'Debian': {
|
||||
$borg_packages = [
|
||||
"borgbackup",
|
||||
"sshfs",
|
||||
]
|
||||
$borg_cmd = "/usr/bin/borg"
|
||||
$sshfs_cmd = '/usr/bin/sshfs'
|
||||
|
||||
}
|
||||
|
||||
default: {
|
||||
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue